mirror of
https://github.com/gohugoio/hugo.git
synced 2025-01-11 18:51:36 +00:00
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:
parent
bfce30d859
commit
a54404968a
1 changed files with 1 additions and 0 deletions
|
@ -137,6 +137,7 @@ var blackfridayExtensionMap = map[string]int{
|
||||||
"autoHeaderIds": blackfriday.EXTENSION_AUTO_HEADER_IDS,
|
"autoHeaderIds": blackfriday.EXTENSION_AUTO_HEADER_IDS,
|
||||||
"backslashLineBreak": blackfriday.EXTENSION_BACKSLASH_LINE_BREAK,
|
"backslashLineBreak": blackfriday.EXTENSION_BACKSLASH_LINE_BREAK,
|
||||||
"definitionLists": blackfriday.EXTENSION_DEFINITION_LISTS,
|
"definitionLists": blackfriday.EXTENSION_DEFINITION_LISTS,
|
||||||
|
"joinLines": blackfriday.EXTENSION_JOIN_LINES,
|
||||||
}
|
}
|
||||||
|
|
||||||
var stripHTMLReplacer = strings.NewReplacer("\n", " ", "</p>", "\n", "<br>", "\n", "<br />", "\n")
|
var stripHTMLReplacer = strings.NewReplacer("\n", " ", "</p>", "\n", "<br>", "\n", "<br />", "\n")
|
||||||
|
|
Loading…
Reference in a new issue