From a54404968a4b36579797f2e7ff7f5eada94866d9 Mon Sep 17 00:00:00 2001 From: Haishan Zhou Date: Tue, 27 Jun 2017 18:56:50 +0800 Subject: [PATCH] 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. --- helpers/content.go | 1 + 1 file changed, 1 insertion(+) diff --git a/helpers/content.go b/helpers/content.go index 4a96c50141a..6db35263f24 100644 --- a/helpers/content.go +++ b/helpers/content.go @@ -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", " ", "

", "\n", "
", "\n", "
", "\n")