From 911a6cf046eeac57d4714dd5e39a9c264ac8def3 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Thu, 10 May 2018 17:21:40 +0100 Subject: Map note/comment paragraphs to fresh HTML paragraphs --- NEWS | 5 +++++ lib/options-reader.js | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/NEWS b/NEWS index 4f59cb2..8046eb1 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,8 @@ +# 1.4.6 + +* Fix: default style mappings caused footnotes, endnotes and comments + containing multiple paragraphs to be converted into a single paragraph. + # 1.4.5 * When using the pretty HTML writer, don't format HTML inside pre elements. diff --git a/lib/options-reader.js b/lib/options-reader.js index e7e94fd..9b1864e 100644 --- a/lib/options-reader.js +++ b/lib/options-reader.js @@ -25,11 +25,11 @@ var defaultStyleMap = exports._defaultStyleMap = [ "r[style-name='Strong'] => strong", - "p[style-name='footnote text'] => p", + "p[style-name='footnote text'] => p:fresh", "r[style-name='footnote reference'] =>", - "p[style-name='endnote text'] => p", + "p[style-name='endnote text'] => p:fresh", "r[style-name='endnote reference'] =>", - "p[style-name='annotation text'] => p", + "p[style-name='annotation text'] => p:fresh", "r[style-name='annotation reference'] =>", // LibreOffice -- cgit v1.2.3