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.
This commit is contained in:
Haishan Zhou authored and Anthony Fok committed 2017-06-27 04:56:50 -06:00
1 parent bfce30d859
commit a54404968a
1 file changed
+1
+1
View File
@@ -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")