diff options
| author | Michael Williamson <mike@zwobble.org> | 2015-10-13 23:29:41 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2015-10-13 23:49:31 +0100 |
| commit | 7b7ce0d563ddc07172b0f241a5c3baf344f256e8 (patch) | |
| tree | 43f5fddf920d47e281a30139bde99da5a689d667 /lib/underline.js | |
| parent | e04d054a1b414e843fa6d6f5ee1ae75c0df533b1 (diff) | |
Collapse similar HTML elements
Diffstat (limited to 'lib/underline.js')
| -rw-r--r-- | lib/underline.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/underline.js b/lib/underline.js index 17448e8..fd5dc0f 100644 --- a/lib/underline.js +++ b/lib/underline.js @@ -1,10 +1,11 @@ var htmlPaths = require("./html-paths"); +var Html = require("./html"); exports.element = element; function element(name) { return function(html) { - html.open(htmlPaths.element(name)); + return Html.elementWithTag(htmlPaths.element(name), [html]); }; } |
