diff options
| author | Michael Williamson <mike@zwobble.org> | 2016-01-13 18:57:52 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2016-01-13 18:57:52 +0000 |
| commit | 2935aefeb21941a42a5889bcf8a71d006b15ec36 (patch) | |
| tree | ec9eae0278fd1d666f70e9b1a3ead49924c31254 | |
| parent | 5eda4a6a5ba8fd7ca9204d8d3646b48b29849719 (diff) | |
Improve support for lists made in LibreOffice
| -rw-r--r-- | NEWS | 4 | ||||
| -rw-r--r-- | lib/options-reader.js | 7 |
2 files changed, 8 insertions, 3 deletions
@@ -1,5 +1,9 @@ # 0.3.30 +* Improve support for lists made in LibreOffice. Specifically, this changes the + default style mapping for paragraphs with a style of "Normal" to have the + lowest precedence. + * Replace nomnom with argparse for CLI argument parsing. Usage should be the same, but unknown arguments will now cause an exit with failure rather than being ignored. diff --git a/lib/options-reader.js b/lib/options-reader.js index f2f31e2..19934d8 100644 --- a/lib/options-reader.js +++ b/lib/options-reader.js @@ -6,8 +6,6 @@ var _ = require("underscore"); var standardOptions = exports._standardOptions = { styleMap: [ - "p[style-name='Normal'] => p:fresh", - "p.Heading1 => h1:fresh", "p.Heading2 => h2:fresh", "p.Heading3 => h3:fresh", @@ -46,7 +44,10 @@ var standardOptions = exports._standardOptions = { "p:ordered-list(4) => ul|ol > li > ul|ol > li > ul|ol > li > ol > li:fresh", "p:ordered-list(5) => ul|ol > li > ul|ol > li > ul|ol > li > ul|ol > li > ol > li:fresh", - "r[style-name='Hyperlink'] =>" + "r[style-name='Hyperlink'] =>", + + "p[style-name='Normal'] => p:fresh" + ], transformDocument: identity, includeDefaultStyleMap: true |
