aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2013-05-06 13:52:12 +0100
committerMichael Williamson <mike@zwobble.org>2013-05-06 13:52:12 +0100
commit63db489b366fb41a3c981f2611e52469ed326215 (patch)
treec193962108ad490fd30bcf4c321de37feace9b25 /lib
parent0ee1ecbc9fc22b63ca76fce6434f7c976fae77e1 (diff)
Set heading styles to require fresh elements
Diffstat (limited to 'lib')
-rw-r--r--lib/index.js9
1 files changed, 5 insertions, 4 deletions
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"),