From 82cc1ac0f8860de6ca097235d23babb42c69c720 Mon Sep 17 00:00:00 2001
From: Vincent Batoufflet
Date: Sat, 13 Jun 2015 10:02:53 +0200
Subject: [PATCH] Add Blackfriday definition lists extension support
---
helpers/content.go | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/helpers/content.go b/helpers/content.go
index 3a5f423d..33df068c 100644
--- a/helpers/content.go
+++ b/helpers/content.go
@@ -71,6 +71,7 @@ var blackfridayExtensionMap = map[string]int{
"headerIds": blackfriday.EXTENSION_HEADER_IDS,
"titleblock": blackfriday.EXTENSION_TITLEBLOCK,
"autoHeaderIds": blackfriday.EXTENSION_AUTO_HEADER_IDS,
+ "definitionLists": blackfriday.EXTENSION_DEFINITION_LISTS,
}
var stripHTMLReplacer = strings.NewReplacer("\n", " ", "
", "\n", "
", "\n", "
", "\n")
@@ -163,7 +164,8 @@ func getMarkdownExtensions(ctx *RenderingContext) int {
blackfriday.EXTENSION_TABLES | blackfriday.EXTENSION_FENCED_CODE |
blackfriday.EXTENSION_AUTOLINK | blackfriday.EXTENSION_STRIKETHROUGH |
blackfriday.EXTENSION_SPACE_HEADERS | blackfriday.EXTENSION_FOOTNOTES |
- blackfriday.EXTENSION_HEADER_IDS | blackfriday.EXTENSION_AUTO_HEADER_IDS
+ blackfriday.EXTENSION_HEADER_IDS | blackfriday.EXTENSION_AUTO_HEADER_IDS |
+ blackfriday.EXTENSION_DEFINITION_LISTS
for _, extension := range ctx.getConfig().Extensions {
if flag, ok := blackfridayExtensionMap[extension]; ok {
flags |= flag
--
2.30.2