Ignore result blocks.

This commit is contained in:
Sergio Martínez Portela 2022-05-16 23:28:59 +02:00
parent 386b3a1855
commit eda511171d

View File

@ -205,6 +205,13 @@ def render_code_block(element, acc):
acc.append(html.escape(element.lines)) acc.append(html.escape(element.lines))
acc.append('</code></pre>') 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): def render_text(element, acc):
acc.append('<span class="text">') acc.append('<span class="text">')
@ -240,6 +247,7 @@ def render_tag(element, acc):
dom.ListItem: render_list_item, dom.ListItem: render_list_item,
dom.CodeBlock: render_code_block, dom.CodeBlock: render_code_block,
dom.Text: render_text, dom.Text: render_text,
dom.ResultsDrawerNode: render_results_block,
}[type(element)](element, acc) }[type(element)](element, acc)