From 49d54d513f2f4dabf4f5892bbcb51d71a52fc4d7 Mon Sep 17 00:00:00 2001 From: Elliott Stoneham Date: Thu, 5 May 2016 17:50:54 +0100 Subject: [PATCH] avoid double-escaping MD heading lines --- documize/api/convert/html/html.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/documize/api/convert/html/html.go b/documize/api/convert/html/html.go index af6da7df..6c4e32ed 100644 --- a/documize/api/convert/html/html.go +++ b/documize/api/convert/html/html.go @@ -149,7 +149,7 @@ func (h *htmlToSplit) renderHeading(c *html.Node, level uint64) error { func (h *htmlToSplit) newSect(tstr string, level uint64) { h.CFR.Pages = append(h.CFR.Pages, h.thisSect) - title := utility.EscapeHTMLcomplexChars(tstr) + title := tstr //was: utility.EscapeHTMLcomplexChars(tstr) -- removed to avoid double-escaping body := `` if len(title) > maxTitle { body = title[maxTitle:]