Skip to content

Commit

Permalink
helpers: Add Blackfriday 'joinLines' extension support (#3574)
Browse files Browse the repository at this point in the history
See russross/blackfriday#334
"add an extension to handle Chinese (or CJK) newlines"
for more information.
  • Loading branch information
choueric authored and anthonyfok committed Jun 27, 2017
1 parent bfce30d commit a544049
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions helpers/content.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit a544049

Please sign in to comment.