From ae93bc7b7470ee9e6c8401e1516cafccf47ecced Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9rald=20Barr=C3=A9?= Date: Thu, 26 Feb 2015 23:23:05 +0100 Subject: [PATCH] Open header tag are not closed when tracking position. Before editing: `

Markdown: Syntax

` After editing: `

Markdown: Syntax

` --- CommonMark/Formatter/HtmlPrinter.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/CommonMark/Formatter/HtmlPrinter.cs b/CommonMark/Formatter/HtmlPrinter.cs index e1a4fad..40db540 100644 --- a/CommonMark/Formatter/HtmlPrinter.cs +++ b/CommonMark/Formatter/HtmlPrinter.cs @@ -301,6 +301,7 @@ private static void BlocksToHtmlInner(HtmlTextWriter writer, Block block, Common { writer.WriteConstant("'); InlinesToHtml(writer, block.InlineContent, settings, inlineStack); writer.WriteLineConstant(x > 0 && x < 7 ? HeaderCloserTags[x - 1] : ""); }