From 63db489b366fb41a3c981f2611e52469ed326215 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Mon, 6 May 2013 13:52:12 +0100 Subject: Set heading styles to require fresh elements --- lib/index.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'lib') diff --git a/lib/index.js b/lib/index.js index 24a0996..0cb55f9 100644 --- a/lib/index.js +++ b/lib/index.js @@ -9,12 +9,13 @@ exports.convertToHtml = convertToHtml; exports.read = read; exports.convertDocumentToHtml = convertDocumentToHtml; exports.htmlPaths = htmlPaths; +exports.style = style; var standardOptions = exports.standardOptions = { styleMap: [ - style("p.Heading1 => h1"), - style("p.Heading2 => h2"), - style("p.Heading3 => h3"), - style("p.Heading4 => h4"), + style("p.Heading1 => h1:fresh"), + style("p.Heading2 => h2:fresh"), + style("p.Heading3 => h3:fresh"), + style("p.Heading4 => h4:fresh"), style("p:unordered-list(1) => ul > li:fresh"), style("p:unordered-list(2) => ul|ol > li > ul > li:fresh"), style("p:unordered-list(3) => ul|ol > li > ul|ol > li > ul > li:fresh"), -- cgit v1.2.3