code wiki / _hdl_build / nx_md_lib.nx

nx_md_lib.nx

buildroot/runtime/_hdl_build/nx_md_lib.nx

10217 B146 linesdepth 2pulls 2 transitivereach 2 importersview sourcekind library
docsdependenciesstructsconstsfunctions

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

nx_syscalls.nx nx_md_lib.nx nx_md.nx nx_nishios_docview.nx

imports: nx_syscalls.nx

imported by: nx_md.nxnx_nishios_docview.nx

structs

none

consts

none

functions

6func 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 }
9func md_esc1(dst: *u8, o: i64, c: i64) -> i64
called by 2: md_inlinemd_to_html calls 1: md_cat
17func md_inline(dst: *u8, off: i64, src: *u8, s: i64, e: i64) -> i64
called by 1: md_to_html calls 2: md_catmd_esc1
61func md_all_dash(src: *u8, s: i64, e: i64) -> i64
called by 1: md_to_html
69func 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
71func md_to_html(src: *u8, slen: i64, out: *u8, dlurl: *u8) -> i64