mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-27 22:09:53 +02:00
Add option to disable Blackfriday Smartypants
Can be used in site config or per page front matter: ``` [blackfriday] smartypants = false ```
This commit is contained in:
committed by
Bjørn Erik Pedersen
parent
eb519afefd
commit
4a2eda49cd
@@ -165,6 +165,16 @@ But Hugo does expose some options---as listed in the table below, matched with t
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><code><strong>smartypants</strong></code></td>
|
||||
<td><code>true</code></td>
|
||||
<td><code>HTML_USE_SMARTYPANTS</code></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="purpose-title">Purpose:</td>
|
||||
<td class="purpose-description" colspan="2">Enable enable smart punctuation substitutions.</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><code><strong>angledQuotes</strong></code></td>
|
||||
<td><code>false</code></td>
|
||||
@@ -190,16 +200,6 @@ 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>hrefTargetBlank</strong></code></td>
|
||||
<td><code>false</code></td>
|
||||
<td><code>HTML_HREF_TARGET_BLANK</code></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="purpose-title">Purpose:</td>
|
||||
<td class="purpose-description" colspan="2">Open external links in a new window/tab.</small></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><code><strong>latexDashes</strong></code></td>
|
||||
<td><code>true</code></td>
|
||||
@@ -210,6 +210,18 @@ but only these three.</small></td>
|
||||
<td class="purpose-description" colspan="2">Disable LaTeX style dashes.</small></td>
|
||||
</tr>
|
||||
|
||||
<tr style="height: 0.3em;"></tr>
|
||||
|
||||
<tr>
|
||||
<td><code><strong>hrefTargetBlank</strong></code></td>
|
||||
<td><code>false</code></td>
|
||||
<td><code>HTML_HREF_TARGET_BLANK</code></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="purpose-title">Purpose:</td>
|
||||
<td class="purpose-description" colspan="2">Open external links in a new window/tab.</small></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><code><strong>plainIdAnchors</strong></code></td>
|
||||
<td><code>false</code></td>
|
||||
@@ -220,6 +232,8 @@ but only these three.</small></td>
|
||||
<td class="purpose-description" colspan="2">If <code>true</code>, then header and footnote IDs are generated without the document ID <small>(e.g. <code>#my-header</code> instead of <code>#my-header:bec3ed8ba720b9073ab75abcf3ba5d97</code>)</small></td>
|
||||
</tr>
|
||||
|
||||
<tr style="height: 0.3em;"></tr>
|
||||
|
||||
<tr>
|
||||
<td><code><strong>extensions</strong></code></td>
|
||||
<td><code>[]</code></td>
|
||||
|
Reference in New Issue
Block a user