Skip to content

SmartyPants-Unicode handling of quotes, dashes, and ellipses #33

@jlevy

Description

@jlevy

John Gruber's original Markdown has often been used with a long-standing hack called SmartyPants to improve typographic consistency on quotes, dashes, and ellipses. Python's Markdown package also implements it here.

A variant of this, that converts ASCII quotes, dashes, and ellipses to their appropriate Unicode equivalents, could be helpful in markdownfmt. Instead of converting to HTML entities, it would convert to Unicode, and then the Markdown doc would be consistent (including on GitHub, which does not by default do smarty-style conversion).

This is just another feature to note and discuss/consider. Inconsistent typographic usage is yet another pain point I've seen with large-scale collaborative Markdown.

It could also be implemented as a separate tool, perhaps. Gruber notes some (rare) algorithmic shortcomings like

'Twas the night...  -> ‘Twas the night...

But it's worth remembering authors can avoid that by using the correct oriented quotes in the original:

’Twas the night...

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions