From b462983d65510e4064f29c20491517cc4d9c425e Mon Sep 17 00:00:00 2001 From: Jason Blevins Date: Fri, 28 Aug 2015 09:51:23 -0400 Subject: [PATCH] Fix out-of-order HTML output Thanks to Moogen Tian for the report and a patch. --- markdown-mode.el | 1 + 1 file changed, 1 insertion(+) diff --git a/markdown-mode.el b/markdown-mode.el index 5b08c6da..39d6fd85 100644 --- a/markdown-mode.el +++ b/markdown-mode.el @@ -4544,6 +4544,7 @@ Standalone XHTML output is identified by an occurrence of (defun markdown-add-xhtml-header-and-footer (title) "Wrap XHTML header and footer with given TITLE around current buffer." + (goto-char (point-min)) (insert "\n" "\n\n"