Files
marqdo/public/features/15-toml-html-encoding.mq.md
T
cflmyandCursor b5c07385e9 feat(markup): finish v0.3 stock migration and green gold
Migrate remaining .mq.md (tests/ext/public/examples), stop elevating local assigns to params, inject form_target in Go libweb, and skip live LLM gold without a real key.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-13 23:43:44 +08:00

582 B


title: Mid stdlib — toml, html, base32 description: Config TOML + HTML escape + base32 (Mid2 M8) import toml:lib/toml.mq.md import html:lib/html.mq.md import enc:lib/encoding.mq.md

Config and safe text without plugins

Parse a TOML subset for tools, escape HTML before assembly, encode with base32.

main

cfg = > toml.parse text="app = "demo"\n[server]\nport = 8080\n"

print text=cfg[^app] srv = cfg[^server] print text=srv[^port]

safe = > html.escape text=""

print text=safe

b = > enc.base32_encode text="ok"

print text=b