diff --git a/_scripts/generate.py b/_scripts/generate.py index 7635953..f5f328d 100644 --- a/_scripts/generate.py +++ b/_scripts/generate.py @@ -154,15 +154,7 @@ def render_list_item(element, acc): def render_code_block(element, acc): acc.append('
')
- 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('
')