code wiki / _hdl_build / nx_md_lib.nx
nx_md_lib.nx
buildroot/runtime/_hdl_build/nx_md_lib.nx
about
nx_md_lib.nx -- the Markdown -> HTML renderer as a LIBRARY (rule 15 DRY): shared by the nx_md CLI organ
(Linux/dispatch path) and the NishiOS app layer (nx_nishios_docview), where there is no process fork yet so
renderers LINK instead of exec. Pure functions, no main. license_tier: ORIGINAL
dependencies 1 imports · 2 importers
imports: nx_syscalls.nx
imported by: nx_md.nxnx_nishios_docview.nx
structs
| none |
consts
| none |
functions
| 6 | func md_cat(dst: *u8, off: i64, s: *u8) -> i64 { var i: i64=0; while s[i]!=(0 as u8) { dst[off+i]=s[i]; i=i+1 } return off+i } |
| 9 | func md_esc1(dst: *u8, o: i64, c: i64) -> i64 |
| 17 | func md_inline(dst: *u8, off: i64, src: *u8, s: i64, e: i64) -> i64 |
| 61 | func md_all_dash(src: *u8, s: i64, e: i64) -> i64 called by 1: md_to_html |
| 69 | func md_num_to(dst: *u8, off: i64, v: i64) -> i64 { dst[off]=(48+v) as u8; return off+1 } called by 1: md_to_html |
| 71 | func md_to_html(src: *u8, slen: i64, out: *u8, dlurl: *u8) -> i64 |