mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-14 17:04:51 -04:00
Add site-wide/per-page [blackfriday] extensions
option
This commit is contained in:
parent
d4a58c8577
commit
92dcacba1e
@ -71,7 +71,7 @@ Here is a yaml configuration file which sets a few more options
|
|||||||
|
|
||||||
[Blackfriday](https://github.com/russross/blackfriday) is the [Markdown](http://daringfireball.net/projects/markdown/) rendering engine used in Hugo. The Blackfriday configuration in Hugo is mostly a set of sane defaults that should fit most use cases.
|
[Blackfriday](https://github.com/russross/blackfriday) is the [Markdown](http://daringfireball.net/projects/markdown/) rendering engine used in Hugo. The Blackfriday configuration in Hugo is mostly a set of sane defaults that should fit most use cases.
|
||||||
|
|
||||||
But Hugo does expose some options---as listed in the table below, matched with the corresponding flag in the [Blackfriday source](https://github.com/russross/blackfriday/blob/master/html.go):
|
But Hugo does expose some options---as listed in the table below, matched with the corresponding flag in the Blackfriday source ([html.go](https://github.com/russross/blackfriday/blob/master/html.go) and [markdown.go](https://github.com/russross/blackfriday/blob/master/markdown.go)):
|
||||||
|
|
||||||
<table class="table table-bordered">
|
<table class="table table-bordered">
|
||||||
<thead>
|
<thead>
|
||||||
@ -115,6 +115,16 @@ but only these three.</small></td>
|
|||||||
<td class="purpose-title">Purpose:</td>
|
<td class="purpose-title">Purpose:</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>
|
<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>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td><code>extensions</code></td>
|
||||||
|
<td><code>[]</code></td>
|
||||||
|
<td><code>EXTENSION_*</code></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="purpose-title">Purpose:</td>
|
||||||
|
<td class="purpose-description" colspan="2">Use non-default additional extensions <small>(e.g. Add <code>"hardLineBreak"</code> to use <code>EXTENSION_HARD_LINE_BREAK</code>)</small></td>
|
||||||
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
@ -130,11 +140,14 @@ but only these three.</small></td>
|
|||||||
angledQuotes = true
|
angledQuotes = true
|
||||||
fractions = false
|
fractions = false
|
||||||
plainIdAnchors = true
|
plainIdAnchors = true
|
||||||
|
extensions = ["hardLineBreak"]
|
||||||
</code></pre></td>
|
</code></pre></td>
|
||||||
<td><pre><code>blackfriday:
|
<td><pre><code>blackfriday:
|
||||||
angledQuotes: true
|
angledQuotes: true
|
||||||
fractions: false
|
fractions: false
|
||||||
plainIdAnchors: true
|
plainIdAnchors: true
|
||||||
|
extensions:
|
||||||
|
- hardLineBreak
|
||||||
</code></pre></td>
|
</code></pre></td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user