From c64d915ef1fe0c3bf5e184a0a555164c01ccbf14 Mon Sep 17 00:00:00 2001 From: Anthony Fok Date: Tue, 4 Aug 2015 13:05:48 -0600 Subject: [PATCH] Add option to disable Blackfriday Smartypants Can be used in site config or per page front matter: ``` [blackfriday] smartypants = false ``` --- content/overview/configuration.md | 34 ++++++++++++++++++++++--------- 1 file changed, 24 insertions(+), 10 deletions(-) diff --git a/content/overview/configuration.md b/content/overview/configuration.md index 4a718d194..a8100634d 100644 --- a/content/overview/configuration.md +++ b/content/overview/configuration.md @@ -165,6 +165,16 @@ But Hugo does expose some options---as listed in the table below, matched with t + +smartypants +true +HTML_USE_SMARTYPANTS + + +Purpose: +Enable enable smart punctuation substitutions. + + angledQuotes false @@ -190,16 +200,6 @@ Blackfriday would still convert 1/2, 1/4 and 3/4 to ½ (&frac12;< but only these three. - -hrefTargetBlank -false -HTML_HREF_TARGET_BLANK - - -Purpose: -Open external links in a new window/tab. - - latexDashes true @@ -210,6 +210,18 @@ but only these three. Disable LaTeX style dashes. + + + +hrefTargetBlank +false +HTML_HREF_TARGET_BLANK + + +Purpose: +Open external links in a new window/tab. + + plainIdAnchors false @@ -220,6 +232,8 @@ but only these three. If true, then header and footnote IDs are generated without the document ID (e.g. #my-header instead of #my-header:bec3ed8ba720b9073ab75abcf3ba5d97) + + extensions []