karlb / smu

Simple MarkUp - markdown/commonmark like syntax
http://karlb.github.io/smu/
MIT License
55 stars 5 forks source link

Links containing single quote don't work #16

Open clark800 opened 1 year ago

clark800 commented 1 year ago

This is because of the optional "title" attribute for links.

The spec says "If both link destination and link title are present, they must be separated by spaces, tabs, and up to one line ending." (https://spec.commonmark.org/0.30/#links), so it should be possible to preserve single quotes that come before a whitespace character followed by a quote inside the link parenthesis.

A workaround is to use URL percent-encoding, but this is inconvenient when copying and pasting links.