code wiki / _hdl_build / nx_md.nx
nx_md.nx
buildroot/runtime/_hdl_build/nx_md.nx
about
nx_md.nx -- sovereign Markdown -> HTML viewer CLI. The renderer itself lives in nx_md_lib.nx (rule 15
DRY: shared with the NishiOS app layer, which LINKS renderers instead of exec'ing them). Same
`html <in> <out> [dlurl]` interface as nx_docx/nx_csv/nx_pdf, so the nx_doc_view dispatcher routes to it
by registry with zero special-casing. license_tier: ORIGINAL
dependencies 3 imports · 0 importers
imports: nx_syscalls.nxnx_itoa_lib.nxnx_md_lib.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| 8 | const K_MAGIC_2097168: i64 = 2097168 |
| 9 | const K_MAGIC_2097152: i64 = 2097152 |
| 10 | const K_MAGIC_8388608: i64 = 8388608 |
functions
| 12 | func md_slen(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8) { n=n+1 } return n } called by 1: md_puts |
| 13 | func md_puts(s: *u8) -> i64 { sys_write(1, s, md_slen(s)); return 0 } |
| 18 | func md_num(v: i64) -> i64 { nxi_out(v); return 0 } |
| 20 | func md_readfile(path: *u8, buf: *u8, cap: i64) -> i64 |
| 26 | func main(argc: i64, argv: *i64) -> i64 |