mmark-ext-0.2.1.5: Commonly useful extensions for the MMark markdown processor
Copyright© 2018–present Mark Karpov
LicenseBSD 3 clause
MaintainerMark Karpov <markkarpov92@gmail.com>
Stabilityexperimental
Portabilityportable
Safe HaskellNone
LanguageHaskell2010

Text.MMark.Extension.PunctuationPrettifier

Description

Punctuation prettifier.

Synopsis

Documentation

punctuationPrettifier :: Extension Source #

Prettify punctuation (only affects plain text in inlines):

  • Replace ... with ellipsis …
  • Replace --- with em-dash —
  • Replace -- with en-dash –
  • Replace " with left double quote “ when previous character was a space character, otherwise replace it with right double quote ”
  • Replace ' with left single quote ‘ when previous character was a space character, otherwise replace it with right single quote ’ aka apostrophe