Track simplified code block structure.
This commit is contained in:
parent
81e6935157
commit
51245491e1
1 changed files with 1 additions and 9 deletions
|
@ -154,15 +154,7 @@ def render_list_item(element, acc):
|
|||
|
||||
def render_code_block(element, acc):
|
||||
acc.append('<pre><code>')
|
||||
for line in element.lines:
|
||||
if isinstance(line, org_rw.org_rw.Text):
|
||||
for tok in line.contents:
|
||||
if not isinstance(tok, org_rw.org_rw.MarkerToken):
|
||||
acc.append(tok)
|
||||
elif isinstance(line, dom.CodeBlock):
|
||||
print(line.lines)
|
||||
else:
|
||||
print(type(line))
|
||||
acc.append(element.lines)
|
||||
acc.append('</code></pre>')
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue