mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-27 22:09:53 +02:00
Add smartDashes flag for Blackfriday
To allow the end users to disable any form of smart dashes (LaTeX-style or not) while keeping the rest of Blackfriday SmartyPants features. Depends on https://github.com/russross/blackfriday/pull/190 "Add HTML_SMARTYPANTS_DASHES for toggling smart dashes" to be accepted by Blackfriday developers.
This commit is contained in:
@@ -179,7 +179,7 @@ But Hugo does expose some options---as listed in the table below, matched with t
|
||||
<tr>
|
||||
<td class="purpose-title">Purpose:</td>
|
||||
<td class="purpose-description" colspan="2">Enable/Disable smart punctuation substitutions such as smart quotes, smart dashes, etc.
|
||||
May be fine-tuned with the <code>angledQuotes</code>, <code>fractions</code> and <code>latexDashes</code> flags below.</td>
|
||||
May be fine-tuned with the <code>angledQuotes</code>, <code>fractions</code>, <code>smartDashes</code> and <code>latexDashes</code> flags below.</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
@@ -208,6 +208,17 @@ Blackfriday would still convert 1/2, 1/4 and 3/4 to ½ (<code>&frac12;<
|
||||
but only these three.</small></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><code><strong>smartDashes</strong></code></td>
|
||||
<td><code>true</code></td>
|
||||
<td><code>HTML_SMARTYPANTS_DASHES</code></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="purpose-title">Purpose:</td>
|
||||
<td class="purpose-description" colspan="2">Enable/Disable smart dashes, i.e. turning hyphens into en dash or em dash.<br>
|
||||
Its behavior can be modified with the <code>latexDashes</code> flag listed below.</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><code><strong>latexDashes</strong></code></td>
|
||||
<td><code>true</code></td>
|
||||
|
Reference in New Issue
Block a user