diff options
| author | Michael Williamson <mike@zwobble.org> | 2015-06-17 14:33:43 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2015-06-17 14:33:43 +0100 |
| commit | 17577bdd715c65e71d81f762b54b8c27f60f4535 (patch) | |
| tree | 5389d7741881b2d198daf450f915fa9b3527f7e7 /lib/style-reader.js | |
| parent | dc31bacddd43e100a2793c76e26d35568262d89a (diff) | |
Support underlines in style map
Diffstat (limited to 'lib/style-reader.js')
| -rw-r--r-- | lib/style-reader.js | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/style-reader.js b/lib/style-reader.js index ef379b6..811e06e 100644 --- a/lib/style-reader.js +++ b/lib/style-reader.js @@ -109,7 +109,7 @@ function documentMatcherRule() { ); var matcherSuffixes = lop.rules.zeroOrMore(matcherSuffix); - return sequence( + var paragraphOrRun = sequence( sequence.capture(elementTypeRule), sequence.capture(matcherSuffixes) ).map(function(createMatcher, suffixes) { @@ -119,6 +119,13 @@ function documentMatcherRule() { }); return createMatcher(matcherOptions); }); + + var underline = identifierToConstant("u", documentMatchers.underline); + + return lop.rules.firstOf("element type", + paragraphOrRun, + underline + ); } function readHtmlPath(string) { |
