From 33f089bb9f1d8fa599fe10ba1ddead6c10dbd4b4 Mon Sep 17 00:00:00 2001 From: vgmoose Date: Fri, 21 Jul 2017 00:04:49 -0400 Subject: Rename smallCaps style mapping to small-caps --- lib/style-reader.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'lib/style-reader.js') diff --git a/lib/style-reader.js b/lib/style-reader.js index 32a2920..692672e 100644 --- a/lib/style-reader.js +++ b/lib/style-reader.js @@ -137,6 +137,7 @@ function documentMatcherRule() { var italic = identifierToConstant("i", documentMatchers.italic); var underline = identifierToConstant("u", documentMatchers.underline); var strikethrough = identifierToConstant("strike", documentMatchers.strikethrough); + var smallCaps = identifierToConstant("small-caps", documentMatchers.smallCaps); var commentReference = identifierToConstant("comment-reference", documentMatchers.commentReference); var breakMatcher = sequence( @@ -160,17 +161,15 @@ function documentMatcherRule() { } }); - var smallCaps = identifierToConstant("smallCaps", documentMatchers.smallCaps); - return lop.rules.firstOf("element type", paragraphOrRun, bold, italic, underline, strikethrough, + smallCaps, commentReference, - breakMatcher, - smallCaps + breakMatcher ); } -- cgit v1.2.3