Files
marqdo/tests/lib/toml-html-encoding-smoke.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

25 lines
547 B
Markdown

---
title: lib/toml html encoding M8 smoke
import toml:lib/toml.mq.md
import html:lib/html.mq.md
import enc:lib/encoding.mq.md
---
# main
**cfg = > toml.parse text="name = \"marqdo\"\ncount = 2\n[pkg]\nver = \"1\"\n"**
> print text=`cfg`[^name]
> print text=`cfg`[^count]
**pkg = `cfg`[^pkg]**
> print text=`pkg`[^ver]
**e = > html.escape text="a<b>&\"c'"**
> print text=`e`
**u = > html.unescape text=`e`**
> print text=`u`
**b = > enc.base32_encode text="hello"**
> print text=`b`
**back = > enc.base32_decode text=`b`**
> print text=`back`