Smart Punctuation on Rendering

by ile-24556
5
4
3
2
1
New Plugin

Description

This plugin has not been manually reviewed by Obsidian staff. 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.

Reviews

No reviews yet.

Stats

stars
downloads
0
forks
0
days
NaN
days
NaN
days
0
total PRs
0
open PRs
0
closed PRs
0
merged PRs
0
total issues
0
open issues
0
closed issues
0
commits

Latest Version

Invalid date

Changelog

README file from

Github

Obsidian 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.