-
Notifications
You must be signed in to change notification settings - Fork 254
-
Notifications
You must be signed in to change notification settings - Fork 254
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
How to apply microtypographic rules to Markdown? #59
Comments
This can be implemented as a goldmark extension. But I can not implement this because I don't know about French. (Can you imagine french people implement Japanese related functionalities?). I keep this issue opened and wait to see someone creating this extension. |
@yuin can my issue here help you implement non-breaking spaces/french punctuation support? I noticed also that |
A similar attempt as a Hugo module: https://github.com/jygastaud/hugo-microtypo |
Again, I'm not going to implement this. This is an open source project. |
🙏 @yuin thanks for pointing us in the right direction, closing this as |
I'm used a node script to implement this with https://github.com/sapegin/richtypo.js but I preferred have an extension by default in hugo like: [markup]
defaultMarkdownHandler = "goldmark"
[markup.goldmark]
[markup.goldmark.extensions]
typographer = true
[markup.goldmark.typographer]
language = french I'm not Go developer :'( |
@kosssi I won't because I value Maintainers over Users in open source projects. If a french Go developer has the appetite to fix it, he will. |
@kosssi Please: how do you use this script? Can you show an example? Thank you! @yuin of course I'd love to write this extension ...if only I were a real programmer. Which extension could I use as an example? Is there a guide somewhere about howto write, compile, test... an extension? Thank you |
https://github.com/yuin/goldmark/blob/master/extension/typographer.go Typographer extension can be used as an example. There are no guides yet, but many people created extensions referring to the builtin extensions. |
How should be french typographic rules applied, through an extension, or is it something that is dependendant of the Go language itself? Or another Go Package? SmartyPants but with more rules specific to a language.
For instance, languages like PHP have libs to handle this https://github.com/jolicode/JoliTypo
Some of the french typographic rules are liste by Grammalecte Firefox extension:
The text was updated successfully, but these errors were encountered: