feat(ast): output code lines
parent
c653d437bd
commit
e57650fa01
|
@ -58,6 +58,10 @@ mrk_err __mrk_ast_to_html(mrk_buf *buf, const char *orig, mrk_ast_node *root) {
|
||||||
MRK_RES(__mrk_ast_to_html(buf, orig, child));
|
MRK_RES(__mrk_ast_to_html(buf, orig, child));
|
||||||
MRK_RES(mrk_buf_append_n(buf, "</li>", 5));
|
MRK_RES(mrk_buf_append_n(buf, "</li>", 5));
|
||||||
break;
|
break;
|
||||||
|
case mrk_ast_node_type_code:
|
||||||
|
MRK_RES(mrk_buf_append_n(buf, "<code>", 6));
|
||||||
|
MRK_RES(__mrk_ast_to_html(buf, orig, child));
|
||||||
|
MRK_RES(mrk_buf_append_n(buf, "</code>", 7));
|
||||||
case mrk_ast_node_type_none:
|
case mrk_ast_node_type_none:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue