Skip to content

Commit a544049

Browse files
chouericanthonyfok
authored andcommitted
helpers: Add Blackfriday 'joinLines' extension support (#3574)
See russross/blackfriday#334 "add an extension to handle Chinese (or CJK) newlines" for more information.
1 parent bfce30d commit a544049

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

‎helpers/content.go‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ var blackfridayExtensionMap = map[string]int{
137137
"autoHeaderIds": blackfriday.EXTENSION_AUTO_HEADER_IDS,
138138
"backslashLineBreak": blackfriday.EXTENSION_BACKSLASH_LINE_BREAK,
139139
"definitionLists": blackfriday.EXTENSION_DEFINITION_LISTS,
140+
"joinLines": blackfriday.EXTENSION_JOIN_LINES,
140141
}
141142

142143
var stripHTMLReplacer = strings.NewReplacer("\n", " ", "</p>", "\n", "<br>", "\n", "<br />", "\n")

0 commit comments

Comments
 (0)