You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Test of [cmark]'s `--smart` option. There's something wrong.
[cmark]: http://commonmark.org
cmark --smart produces
<p>Test of <a href="http://commonmark.org">cmark</a>‘s <code>--smart</code> option. There’s something wrong.</p>
whereas the correct output would be
<p>Test of <a href="http://commonmark.org">cmark</a>’s <code>--smart</code> option. There’s something wrong.</p>
The problem is that the first straight quote (in [cmark]'s) is erroneously converted into an opening single quote (‘) instead of an apostrophe (’).
As far as I can tell, this happens whenever
a 'x follows a non-alphanumeric character (as in ]'x, "'x, or *'x) and
there is a subsequent straight quote at the right boundary of a word (as in x'x or x').
The text was updated successfully, but these errors were encountered:
Given the test source
cmark --smart
produceswhereas the correct output would be
The problem is that the first straight quote (in
[cmark]'s
) is erroneously converted into an opening single quote (‘
) instead of an apostrophe (’
).As far as I can tell, this happens whenever
'x
follows a non-alphanumeric character (as in]'x
,"'x
, or*'x
) andx'x
orx'
).The text was updated successfully, but these errors were encountered: