From 92dcacba1ea66f08b7dfef4d2676e7c36cdec92d Mon Sep 17 00:00:00 2001 From: Naoya Inada Date: Sun, 25 Jan 2015 20:08:02 +0900 Subject: [PATCH] Add site-wide/per-page [blackfriday] `extensions` option --- content/overview/configuration.md | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/content/overview/configuration.md b/content/overview/configuration.md index a07ef5672..c492296fc 100644 --- a/content/overview/configuration.md +++ b/content/overview/configuration.md @@ -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. -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)): @@ -115,6 +115,16 @@ but only these three. + + + + + + + + + +
Purpose: If true, then header and footnote IDs are generated without the document ID (e.g. #my-header instead of #my-header:bec3ed8ba720b9073ab75abcf3ba5d97)
extensions[]EXTENSION_*
Purpose:Use non-default additional extensions (e.g. Add "hardLineBreak" to use EXTENSION_HARD_LINE_BREAK)
@@ -130,11 +140,14 @@ but only these three. angledQuotes = true fractions = false plainIdAnchors = true + extensions = ["hardLineBreak"]
blackfriday:
   angledQuotes: true
   fractions: false
   plainIdAnchors: true
+  extensions:
+    - hardLineBreak