diff options
| author | Michael Williamson <mike@zwobble.org> | 2014-04-22 14:01:49 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2014-04-22 14:01:49 +0100 |
| commit | 12942365ea7a32ffb5945828651c5cab1d12d1c8 (patch) | |
| tree | 1f64dbf6526869b09615475cc7963934f7445acd /lib | |
| parent | 9bde4f67aefc04981dacdace0e553e3ffb6aab2d (diff) | |
Use p[styleName=...] rather than p[name=...]
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/options-reader.js | 8 | ||||
| -rw-r--r-- | lib/style-reader.js | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/lib/options-reader.js b/lib/options-reader.js index 51af0b0..7c50333 100644 --- a/lib/options-reader.js +++ b/lib/options-reader.js @@ -11,10 +11,10 @@ var standardOptions = exports._standardOptions = { style("p.Heading2 => h2:fresh"), style("p.Heading3 => h3:fresh"), style("p.Heading4 => h4:fresh"), - style("p[name='Heading 1'] => h1:fresh"), - style("p[name='Heading 2'] => h2:fresh"), - style("p[name='Heading 3'] => h3:fresh"), - style("p[name='Heading 4'] => h4:fresh"), + style("p[styleName='Heading 1'] => h1:fresh"), + style("p[styleName='Heading 2'] => h2:fresh"), + style("p[styleName='Heading 3'] => h3:fresh"), + style("p[styleName='Heading 4'] => 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"), diff --git a/lib/style-reader.js b/lib/style-reader.js index 244e256..5570839 100644 --- a/lib/style-reader.js +++ b/lib/style-reader.js @@ -70,7 +70,7 @@ function documentMatcherRule() { var styleNameRule = lop.rules.then( lop.rules.sequence( lop.rules.tokenOfType("open-square-bracket"), - lop.rules.token("identifier", "name"), + lop.rules.token("identifier", "styleName"), lop.rules.tokenOfType("equals"), lop.rules.sequence.capture(stringRule), lop.rules.tokenOfType("close-square-bracket") |
