Mecha CMS

Mecha CMS blog and documentation.

Typography Plugin

Updated: Sunday, 07 August 2016

Smart punctuation converter.

Table of Content

Image

This is an alternative plugin for the built-in typography feature in the default text editor plugin.

This plugin will convert some plain ASCII punctuation characters into “smart” punctuation HTML entities:

  • Convert straight quotes (' and ") into “curly” quote HTML entities
  • Convert dashes (-- and ---) into ‘en-dash’ and ‘em-dash’ HTML entities
  • Convert three consecutive dots (...) into an ‘ellipsis’ HTML entity.

This plugin will not modify characters within <pre>, <code>, <kbd> or <script> tag block because these tags are commonly used to display text where smart quotes and other “smart punctuation” would not be appropriate, such as source code or example markup.

Before

He said, "Some text with \'escaped quotes\'... Hey, what's your name?"

After

He said, “Some text with 'escaped quotes'… Hey, what’s your name?”

Download Latest Version

Donation and Email Subscription