Skip to content
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

#Feat: Add option to specify smartypants substitutions #89

Closed
Buzut opened this issue Mar 14, 2019 · 4 comments · Fixed by #161
Closed

#Feat: Add option to specify smartypants substitutions #89

Buzut opened this issue Mar 14, 2019 · 4 comments · Fixed by #161

Comments

@Buzut
Copy link

Buzut commented Mar 14, 2019

Not all languages use the same punctuation signs. For instance, in French double quotes are usually chevrons « & », it's different in German etc.

For that reason, it would be super handy to be able to specify chars substitution for smartypants.

@curbengh
Copy link
Contributor

curbengh commented Jul 28, 2019

Too bad marked (used by this plugin) doesn't have a built-in mechanism to specify quotes. The only way I can think of is through its extensibility.
Meanwhile, markdown-it (utilized by hexo-renderer-markdown-it) can easily configure it. The hexo plugin can parse the option.

@Buzut
Copy link
Author

Buzut commented Jul 31, 2019

Thank you for getting back to me.
Yes, so sad the plugin won't be able to do it. I don't really want to migrate to another renderer at this point though.
I'll take a look at its extensibility system.

@curbengh
Copy link
Contributor

curbengh commented Aug 1, 2019

PR welcome of course.

@tomap
Copy link
Contributor

tomap commented Aug 3, 2019

I'm not sure migrating to https://github.com/hexojs/hexo-renderer-markdown-it is very complex :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants