inside a list are injected into to the preceeding tag
html = []
html.append('')
for row in rows:
@@ -43,7 +44,8 @@ def nested_html_table(rows):
html.append(' ')
for cell in row:
if cell is not None:
- html.append(f' | {cell} | ')
+ # Inject attributes to the preceeding tag where needed
+ html.append(f' | {cell} | '.replace('> ')
html.append(' ')
elif row is not None:
@@ -53,6 +55,12 @@ def nested_html_table(rows):
html.append(' ')
return html
+def html_image(node):
+ return f''' ''' if node.image else None
+
+def html_caption(node):
+ return f'''{html_line_breaks(node.caption)}''' if node.caption else None
+
def expand(yaml_data):
# yaml_data can be:
|