From 17577bdd715c65e71d81f762b54b8c27f60f4535 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Wed, 17 Jun 2015 14:33:43 +0100 Subject: Support underlines in style map --- lib/html-generator.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib/html-generator.js') diff --git a/lib/html-generator.js b/lib/html-generator.js index a071a5e..a20a714 100644 --- a/lib/html-generator.js +++ b/lib/html-generator.js @@ -43,6 +43,10 @@ function HtmlGenerator(options) { } } + function appendPath(style) { + style.forEach(open); + } + function stylePartMatchesStackElement(stylePart, stackElement) { return stackElement && stylePart.matchesElement(stackElement); } @@ -86,6 +90,7 @@ function HtmlGenerator(options) { return { satisfyPath: satisfyPath, + appendPath: appendPath, text: text, open: open, close: close, -- cgit v1.2.3