aboutsummaryrefslogtreecommitdiff
path: root/lib/style-reader.js
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2016-02-25 19:20:16 +0000
committerMichael Williamson <mike@zwobble.org>2016-02-25 19:20:16 +0000
commitafe8acc82adff83895c93de93c3aee889b455565 (patch)
treef069df6e3cd6e81bc3afeb399302d18a7b7cd6c0 /lib/style-reader.js
parent50851fc4e29cecddda40d58d0db2135ee4b4c0be (diff)
Parse italic document matcher
Diffstat (limited to 'lib/style-reader.js')
-rw-r--r--lib/style-reader.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/style-reader.js b/lib/style-reader.js
index d732181..af6206c 100644
--- a/lib/style-reader.js
+++ b/lib/style-reader.js
@@ -122,12 +122,14 @@ function documentMatcherRule() {
});
var bold = identifierToConstant("b", documentMatchers.bold);
+ var italic = identifierToConstant("i", documentMatchers.italic);
var underline = identifierToConstant("u", documentMatchers.underline);
var strikethrough = identifierToConstant("strike", documentMatchers.strikethrough);
return lop.rules.firstOf("element type",
paragraphOrRun,
bold,
+ italic,
underline,
strikethrough
);