From ef197524626f47334bd6481feb3031c02fb569a4 Mon Sep 17 00:00:00 2001 From: Tzu-ping Chung Date: Fri, 1 Jan 2016 22:21:34 +0800 Subject: [PATCH] Wrap pre-code block inside div This prevents Prism from messing with styles. --- MacDown/Code/Extension/hoedown_html_patch.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MacDown/Code/Extension/hoedown_html_patch.c b/MacDown/Code/Extension/hoedown_html_patch.c index edd305d5..906decbf 100644 --- a/MacDown/Code/Extension/hoedown_html_patch.c +++ b/MacDown/Code/Extension/hoedown_html_patch.c @@ -55,7 +55,7 @@ void hoedown_patch_render_blockcode( lang = mapped; } - HOEDOWN_BUFPUTSL(ob, "flags & HOEDOWN_HTML_BLOCKCODE_LINE_NUMBERS) HOEDOWN_BUFPUTSL(ob, " class=\"line-numbers\""); if (back && back->size) @@ -81,7 +81,7 @@ void hoedown_patch_render_blockcode( hoedown_escape_html(ob, text->data, size, 0); } - HOEDOWN_BUFPUTSL(ob, "\n"); + HOEDOWN_BUFPUTSL(ob, "\n"); hoedown_buffer_free(mapped); hoedown_buffer_free(front);