SmartyPants is a simple text filter that will curl quotes and insert “smart” punctuation. This is extremely useful if you prefer to compose documents using standard HTML, but don’t want to worry about quotes and punctuation.
To see this: | Type this: |
---|---|
‘single quotes’ | 'single quotes' |
“double quotes” | "double quotes" |
“backtick quotes” | ``backtick quotes'' |
John’s apostrophe | John's apostrophe |
just an – en-dash | just an -- en-dash |
just an—em-dash | just an---em-dash |
ellipsis… | ellipsis... |
SmartyPants ignores characters within <pre>
,
<code>
, <kbd>
, or
<script>
tag blocks.