commit a54404968a4b36579797f2e7ff7f5eada94866d9
parent bfce30d85972c27c27e8a2caac9db6315f813298
Author: Haishan Zhou <zhssmail@gmail.com>
Date: Tue, 27 Jun 2017 18:56:50 +0800
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:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git 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")