diff options
| author | Michael Williamson <mike@zwobble.org> | 2014-01-07 22:32:52 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2014-01-07 22:32:52 +0000 |
| commit | 4510e66c6426c88868f74a948123eb48a302d487 (patch) | |
| tree | 48bbc31862b581e594351e7acb0793dafc42e506 /lib | |
| parent | bfc33eec2b0a22e4bb0ee2412ec22df636134330 (diff) | |
Allow default style map to be disabled
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/options-reader.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/options-reader.js b/lib/options-reader.js index fa215f4..687eb92 100644 --- a/lib/options-reader.js +++ b/lib/options-reader.js @@ -23,14 +23,16 @@ var standardOptions = exports._standardOptions = { style("p:ordered-list(4) => ul|ol > li > ul|ol > li > ul|ol > li > ol > li:fresh"), style("p:ordered-list(5) => ul|ol > li > ul|ol > li > ul|ol > li > ul|ol > li > ol > li:fresh") ], - transformDocument: identity + transformDocument: identity, + includeDefaultStyleMap: true }; function readOptions(options) { options = options || {}; var fullOptions = extend(standardOptions, options); - fullOptions.styleMap = readStyleMap(options).concat(standardOptions.styleMap); + fullOptions.styleMap = readStyleMap(options) + .concat(fullOptions.includeDefaultStyleMap ? standardOptions.styleMap : []); return fullOptions; } |
