README file from
GithubObsidian Smart Punctuation on Rendering plugin
Renders ASCII punctuation characters in typographic forms, so you don’t have to struggle to enter desired characters in different editors anymore, for a better reading view.
| Source | Rendered |
|---|---|
-- |
– |
--- |
— |
... |
… |
"" |
“” |
'' |
‘’ |
Limitations
- Live Preview is not supported.
- It may break some elements.
- The callout title icons will be disappeared.
- It may slow down the rendering of a huge note.
- It cannot recognize backslash escaping e.g.
\-\-, since it receives already rendered HTML documents e.g.--. - It cannot handle complex text because it uses simple regexes and is not aware of AST.
Alternatives
If you want to replace text when you type, consider using another plugin. Of course you can use both plugins: Even the notes you wrote before introducing Smart Typography will be rendered as you wish.
Additionally, your system may have relevant settings as macOS does.
Acknowledgement
Test cases are taken from a reference implementation of CommonMark, commonmark.js.