Ignore result blocks.
This commit is contained in:
parent
386b3a1855
commit
eda511171d
@ -205,6 +205,13 @@ def render_code_block(element, acc):
|
||||
acc.append(html.escape(element.lines))
|
||||
acc.append('</code></pre>')
|
||||
|
||||
def render_results_block(element, acc):
|
||||
# TODO:
|
||||
# acc.append('<pre class="results"><code>')
|
||||
# render_tree(element.children, acc)
|
||||
# acc.append('</code></pre>')
|
||||
pass
|
||||
|
||||
|
||||
def render_text(element, acc):
|
||||
acc.append('<span class="text">')
|
||||
@ -240,6 +247,7 @@ def render_tag(element, acc):
|
||||
dom.ListItem: render_list_item,
|
||||
dom.CodeBlock: render_code_block,
|
||||
dom.Text: render_text,
|
||||
dom.ResultsDrawerNode: render_results_block,
|
||||
}[type(element)](element, acc)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user