-
-
Notifications
You must be signed in to change notification settings - Fork 16.7k
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
Enable SmartyPants option of Marked when rendering Markdown #1163
Comments
I'm open to adding an option to the markdown plugin for this. Do you want to give it a shot? It would probably make sense to group markdown plugin options inside one object like: Reveal.initialize({
markdown: {
smartypants: true
}
}) Which the markdown plugin then consumes via |
It would be good to have @hakimel suggestion, but till then putting this in
|
The proposed config option in the comments above was added by @demoneaux in #1765 |
marked.setOptions({smartypants: true});
should automatically change straight quotes like "" into nice quotes like “”.I'd suggest this default to on, since Marked is smart and avoids applying these transformations to code blocks, but I'd be happy with it being more easily configurable, too.
Unfortunately, the version of Marked that's bundled with Reveal has a bug, but updating to the latest Marked release and setting the above option appears to work seamlessly.
The text was updated successfully, but these errors were encountered: