Files
marqdo/tests/lib/toml-html-encoding-smoke.mq.md
cflmyandCursor 687c168014 feat(parse): use nested YAML import: maps instead of one-liner binds
Frontmatter imports are now valid YAML (`import:` / `导入:` with bind→target
entries), removing spaced keys. Add `marqdo migrate imports`, hard-error the
old one-liner form, and migrate lib/ext/examples/tests/docs accordingly.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-23 19:33:58 +08:00

27 lines
628 B
Markdown

---
markup: occlusion
title: lib/toml html encoding M8 smoke
import:
toml: lib/toml.mq.md
html: lib/html.mq.md
enc: lib/encoding.mq.md
---
# main
**cfg = > toml.parse text="name = \"marqdo\"\ncount = 2\n[pkg]\nver = \"1\"\n"**
> print text=[name](access(`cfg`, "name"))
> print text=[count](access(`cfg`, "count"))
**pkg = [pkg](access(`cfg`, "pkg"))**
> print text=[ver](access(`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`