WIP: Fiddling with web presentation.
This commit is contained in:
parent
8bb2c0dbcd
commit
09cfed5fdd
2 changed files with 6 additions and 4 deletions
|
@ -138,7 +138,7 @@ def render_code_block(element, acc):
|
|||
|
||||
def render_text(element, acc):
|
||||
for chunk in element.content.contents:
|
||||
acc.append("<u>{}</u> ".format(chunk))
|
||||
acc.append('<span class="text">{}</span> '.format(chunk))
|
||||
|
||||
|
||||
def render_tag(element, acc):
|
||||
|
@ -159,6 +159,8 @@ def render_tree(tree, acc):
|
|||
|
||||
|
||||
def render(headline, doc):
|
||||
# if headline.id != "41b1ee7e-ddbf-41ff-bc79-18258506ebe6":
|
||||
# return ""
|
||||
print("\n===========")
|
||||
dom = headline.as_dom()
|
||||
print_tree(dom)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue