瀏覽代碼

config: Document popular blackfriday options (#316)

George Cushen 7 年之前
父節點
當前提交
0fb54898df
共有 1 個文件被更改,包括 5 次插入1 次删除
  1. 5 1
      exampleSite/config.toml

+ 5 - 1
exampleSite/config.toml

@@ -21,8 +21,12 @@ defaultContentLanguageInSubdir = false
 [outputs]
 [outputs]
   home = [ "HTML", "CSS" ]
   home = [ "HTML", "CSS" ]
 
 
+# Configure BlackFriday Markdown rendering.
+#   See: https://gohugo.io/readfiles/bfconfig/
 [blackfriday]
 [blackfriday]
-  hrefTargetBlank = true
+  hrefTargetBlank = true  # `true` opens external links in a new tab.
+  fractions = true  # `false` disables smart fractions (e.g. 5/12 formatted as a fraction).
+  smartypants = true  # `false` disables all smart punctuation substitutions (e.g. smart quotes, dashes, fractions).
 
 
 [params]
 [params]
   # Color theme.
   # Color theme.