diff options
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") |
