summaryrefslogtreecommitdiffhomepage
path: root/helpers
diff options
context:
space:
mode:
authorHaishan Zhou <[email protected]>2017-06-27 18:56:50 +0800
committerAnthony Fok <[email protected]>2017-06-27 04:56:50 -0600
commita54404968a4b36579797f2e7ff7f5eada94866d9 (patch)
treeb0f7d1939f4d1359d1b6be5f225ff5ec4039c9fc /helpers
parentbfce30d85972c27c27e8a2caac9db6315f813298 (diff)
downloadhugo-a54404968a4b36579797f2e7ff7f5eada94866d9.tar.gz
hugo-a54404968a4b36579797f2e7ff7f5eada94866d9.zip
helpers: Add Blackfriday 'joinLines' extension support (#3574)
See https://github.com/russross/blackfriday/pull/334 "add an extension to handle Chinese (or CJK) newlines" for more information.
Diffstat (limited to 'helpers')
-rw-r--r--helpers/content.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/helpers/content.go b/helpers/content.go
index 4a96c5014..6db35263f 100644
--- a/helpers/content.go
+++ b/helpers/content.go
@@ -137,6 +137,7 @@ var blackfridayExtensionMap = map[string]int{
"autoHeaderIds": blackfriday.EXTENSION_AUTO_HEADER_IDS,
"backslashLineBreak": blackfriday.EXTENSION_BACKSLASH_LINE_BREAK,
"definitionLists": blackfriday.EXTENSION_DEFINITION_LISTS,
+ "joinLines": blackfriday.EXTENSION_JOIN_LINES,
}
var stripHTMLReplacer = strings.NewReplacer("\n", " ", "</p>", "\n", "<br>", "\n", "<br />", "\n")