aboutsummaryrefslogtreecommitdiff
path: root/lib/options-reader.js
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2025-06-01 11:34:51 +0100
committerMichael Williamson <mike@zwobble.org>2025-06-01 11:34:51 +0100
commit3f5dd013a9259827aef9c63d8c33ed4aab88cdc6 (patch)
tree89d0172afa4b7ce8832c836cdea5a8da3d36af5b /lib/options-reader.js
parent5b1ddddcbd2e66fd3a9867be0e31dd8661a926a6 (diff)
Add Apple Pages paragraph styles to default style map
Diffstat (limited to 'lib/options-reader.js')
-rw-r--r--lib/options-reader.js22
1 files changed, 15 insertions, 7 deletions
diff --git a/lib/options-reader.js b/lib/options-reader.js
index 636f648..e16e472 100644
--- a/lib/options-reader.js
+++ b/lib/options-reader.js
@@ -22,22 +22,26 @@ var defaultStyleMap = exports._defaultStyleMap = [
"p[style-name='heading 4'] => h4:fresh",
"p[style-name='heading 5'] => h5:fresh",
"p[style-name='heading 6'] => h6:fresh",
-
+
+ // Apple Pages
+ "p.Heading => h1:fresh",
+ "p[style-name='Heading'] => h1:fresh",
+
"r[style-name='Strong'] => strong",
-
+
"p[style-name='footnote text'] => p:fresh",
"r[style-name='footnote reference'] =>",
"p[style-name='endnote text'] => p:fresh",
"r[style-name='endnote reference'] =>",
"p[style-name='annotation text'] => p:fresh",
"r[style-name='annotation reference'] =>",
-
+
// LibreOffice
"p[style-name='Footnote'] => p:fresh",
"r[style-name='Footnote anchor'] =>",
"p[style-name='Endnote'] => p:fresh",
"r[style-name='Endnote anchor'] =>",
-
+
"p:unordered-list(1) => ul > li:fresh",
"p:unordered-list(2) => ul|ol > li > ul > li:fresh",
"p:unordered-list(3) => ul|ol > li > ul|ol > li > ul > li:fresh",
@@ -48,10 +52,14 @@ var defaultStyleMap = exports._defaultStyleMap = [
"p:ordered-list(3) => ul|ol > li > ul|ol > li > ol > li:fresh",
"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'] =>",
-
- "p[style-name='Normal'] => p:fresh"
+
+ "p[style-name='Normal'] => p:fresh",
+
+ // Apple Pages
+ "p.Body => p:fresh",
+ "p[style-name='Body'] => p:fresh"
];
var standardOptions = exports._standardOptions = {