diff --git a/commands/hugo.go b/commands/hugo.go index 7aaa0dde6..f57a7c910 100644 --- a/commands/hugo.go +++ b/commands/hugo.go @@ -136,7 +136,7 @@ func InitializeConfig() { viper.SetDefault("FootnoteAnchorPrefix", "") viper.SetDefault("FootnoteReturnLinkContents", "") viper.SetDefault("NewContentEditor", "") - viper.SetDefault("Blackfriday", map[string]bool{"angledQuotes": false, "plainIdAnchors": false}) + viper.SetDefault("Blackfriday", map[string]bool{"angledQuotes": false, "fractions": true, "plainIdAnchors": false}) if hugoCmdV.PersistentFlags().Lookup("buildDrafts").Changed { viper.Set("BuildDrafts", Draft) 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 @@ -91,6 +91,21 @@ But Hugo does expose some options---as listed in the table below, matched with t
"Hugo" renders to «Hugo» instead of “Hugo”)fractionstrueHTML_SMARTYPANTS_FRACTIONS5/12 renders to 5⁄12 (<sup>5</sup>⁄<sub>12</sub>))
+Caveat: Even with fractions = false,
+Blackfriday would still convert 1/2, 1/4 and 3/4 to ½ (½),
+¼ (¼) and ¾ (¾) respectively,
+but only these three.plainIdAnchorsfalse[blackfriday]
- angledQuotes = true
- plainIdAnchors = true
+ angledQuotes = true
+ fractions = false
+ plainIdAnchors = true
blackfriday:
angledQuotes: true
+ fractions: false
plainIdAnchors: true