-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Smart quotes sometimes too aggressive #47
Comments
It seems to me that Pandoc only considers quotes that begin at word boundaries: By contrast, we are quite happy to parse quotes anywhere: lunamark/lunamark/reader/markdown.lua Lines 1068 to 1073 in 1eeea41
|
An additional case to consider:
Lunamark currently gives:
(with a straight apostrophe). Expected (as with Pandoc):
|
Seems like single quotes get special additional treatment by Pandoc. I will need to delve into Pandoc's implementation a bit more. As illustrated by the fenced divs, it may be more time-efficient to study Pandoc's code over treating it like a black box and reverse-engineering the code from its outputs. |
Running with the
smart
extension enabled.With Pandoc:
<p>It’s clear it shouldn’t happen. Aujourd’hui n’est pas demain.</p>
(with right quotes = apostrophes everywhere)
But Lunamark generates
<p>It‘s clear it shouldn’t happen. Aujourd‘hui n’est pas demain.</p>
(with left quotes in "It's" and "Aujourd'hui")
The text was updated successfully, but these errors were encountered: