shithub: hugo

Download patch

ref: a54404968a4b36579797f2e7ff7f5eada94866d9
parent: bfce30d85972c27c27e8a2caac9db6315f813298
author: Haishan Zhou <[email protected]>
date: Tue Jun 27 14:56:50 EDT 2017

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.

--- a/helpers/content.go
+++ b/helpers/content.go
@@ -137,6 +137,7 @@
 	"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")