From 1c4b794650d8305b8624d62082f9234572c53aac Mon Sep 17 00:00:00 2001 From: Anthony Fok Date: Wed, 5 Aug 2015 16:39:29 -0600 Subject: [PATCH] Add smartDashes flag for Blackfriday To allow the end users to disable any form of smart dashes (LaTeX-style or not) while keeping the rest of Blackfriday SmartyPants features. Depends on https://github.com/russross/blackfriday/pull/190 "Add HTML_SMARTYPANTS_DASHES for toggling smart dashes" to be accepted by Blackfriday developers. --- content/overview/configuration.md | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/content/overview/configuration.md b/content/overview/configuration.md index 2a3f16f0b..95727f530 100644 --- a/content/overview/configuration.md +++ b/content/overview/configuration.md @@ -179,7 +179,7 @@ But Hugo does expose some options---as listed in the table below, matched with t Purpose: Enable/Disable smart punctuation substitutions such as smart quotes, smart dashes, etc. -May be fine-tuned with the angledQuotes, fractions and latexDashes flags below. +May be fine-tuned with the angledQuotes, fractions, smartDashes and latexDashes flags below. @@ -208,6 +208,17 @@ Blackfriday would still convert 1/2, 1/4 and 3/4 to ½ (&frac12;< but only these three. + +smartDashes +true +HTML_SMARTYPANTS_DASHES + + +Purpose: +Enable/Disable smart dashes, i.e. turning hyphens into en dash or em dash.
+Its behavior can be modified with the latexDashes flag listed below. + + latexDashes true