Postleaf / postleaf

Simple, beautiful publishing with Node.js.

Home Page:https://www.postleaf.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Smart quotes and typographic improvements

claviska opened this issue · comments

Not sure if this should be a TinyMCE plugin or something built into editor.js, but I'd love to add this sooner than later.

My preferred approach is to do this on the fly like Medium as opposed to when content is rendered. This is inline editing, after all. 💪

  • -- ==> en-dash
  • --- ==> em-dash
  • ... ==> …
  • (tm) ==> ™
  • (c) ==> ©
  • 12x12 ==> 12×12
  • Smart quotes (not as easy as it sounds)
    • opening single quote
    • closing single quote
    • opening double quote
    • closing double quote
    • prime (e.g. 1234′)
    • double prime (e.g. 1234″)
    • years (e.g. ’99)
    • apostrophe (e.g. Bob’s)