Permalink
Browse files

helpers: Add Blackfriday 'joinLines' extension support (#3574)

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 a54404968a4b36579797f2e7ff7f5eada94866d9
Showing with 1 addition and 0 deletions.
  1. +1 −0 helpers/content.go
View
@@ -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")

0 comments on commit a544049

Please sign in to comment.