summaryrefslogtreecommitdiff
path: root/mammoth/underline.py
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2016-03-14 20:46:13 +0000
committerMichael Williamson <mike@zwobble.org>2016-03-14 20:46:13 +0000
commit2c57c1014ae8e44e62021ea2cc36c54352389632 (patch)
tree323783d8b772535dddfd54e1342fce8fe4e4d636 /mammoth/underline.py
parentb34f7280c0754f9fc88725358e22ac46d9a2a598 (diff)
Implement collapsing using HTML AST
Diffstat (limited to 'mammoth/underline.py')
-rw-r--r--mammoth/underline.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/mammoth/underline.py b/mammoth/underline.py
index bb7d270..4a6b346 100644
--- a/mammoth/underline.py
+++ b/mammoth/underline.py
@@ -1,5 +1,8 @@
+from . import html
+
+
def element(name):
- def convert_underline(html_generator):
- html_generator.start(name)
+ def convert_underline(nodes):
+ return [html.collapsible_element(name, {}, nodes)]
return convert_underline