WIP: Fiddling with web presentation.
This commit is contained in:
parent
8bb2c0dbcd
commit
09cfed5fdd
@ -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)
|
||||
|
@ -4,8 +4,8 @@ body {
|
||||
}
|
||||
|
||||
.node .node {
|
||||
margin: 1ex;
|
||||
padding: 0 0.5ex 0.1ex 1ex;
|
||||
margin: 1ex 0.5ex 1ex 0.5ex;
|
||||
padding: 0 0 0.1ex 1ex;
|
||||
box-shadow: 0px 1px 4px 0 rgba(0,0,0,0.3);
|
||||
border-radius: 4px;
|
||||
}
|
||||
@ -36,7 +36,7 @@ li .tag {
|
||||
}
|
||||
|
||||
li .tag::after {
|
||||
content: ": ";
|
||||
content: ":: ";
|
||||
}
|
||||
|
||||
.text {
|
||||
|
Loading…
Reference in New Issue
Block a user