Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'docs/content/overview/configuration.md')
-rw-r--r--docs/content/overview/configuration.md21
1 files changed, 19 insertions, 2 deletions
diff --git a/docs/content/overview/configuration.md b/docs/content/overview/configuration.md
index 4e4b750c1..a07ef5672 100644
--- a/docs/content/overview/configuration.md
+++ b/docs/content/overview/configuration.md
@@ -92,6 +92,21 @@ But Hugo does expose some options---as listed in the table below, matched with t
</tr>
<tr>
+<td><code>fractions</code></td>
+<td><code>true</code></td>
+<td><code>HTML_SMARTYPANTS_FRACTIONS</code></td>
+</tr>
+<tr>
+<td class="purpose-title">Purpose:</td>
+<td class="purpose-description" colspan="2">Enable smart fractions
+<small>(e.g.&nbsp;<code>5/12</code> renders to <sup>5</sup>&frasl;<sub>12</sub> (<code>&lt;sup&gt;5&lt;/sup&gt;&amp;frasl;&lt;sub&gt;12&lt;/sub&gt;</code>))
+<strong>Caveat:</strong> Even with <code>fractions = false</code>,
+Blackfriday would still convert 1/2, 1/4 and 3/4 to ½&nbsp;(<code>&amp;frac12;</code>),
+¼&nbsp;(<code>&amp;frac14;</code>) and ¾&nbsp;(<code>&amp;frac34;</code>) respectively,
+but only these three.</small></td>
+</tr>
+
+<tr>
<td><code>plainIdAnchors</code></td>
<td><code>false</code></td>
<td><code>FootnoteAnchorPrefix</code> and <code>HeaderIDSuffix</code></td>
@@ -112,11 +127,13 @@ But Hugo does expose some options---as listed in the table below, matched with t
</tr>
<tr>
<td><pre><code>[blackfriday]
- angledQuotes = true
- plainIdAnchors = true
+ angledQuotes = true
+ fractions = false
+ plainIdAnchors = true
</code></pre></td>
<td><pre><code>blackfriday:
angledQuotes: true
+ fractions: false
plainIdAnchors: true
</code></pre></td>
</tr>