feat(ast): output code lines

main
Jef Roosens 2024-03-25 18:38:13 +01:00
parent c653d437bd
commit e57650fa01
Signed by: Jef Roosens
GPG Key ID: 02D4C0997E74717B
1 changed files with 4 additions and 0 deletions

View File

@ -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;
} }