Files
marqdo/tests/lib/toml-html-encoding-smoke.mq.md
T
cflmyandCursor abcb141737 refactor: prefer link-index get across examples and tests
Migrate remaining footnote-style collection access in examples,
public/structure, and ext/lib smokes to [key](base); teach link-index in
structure pages and use bracket calls in the cafe journal example.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-14 12:54:38 +08:00

25 lines
551 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=[name](`cfg`)
> print text=[count](`cfg`)
**pkg = [pkg](`cfg`)**
> print text=[ver](`pkg`)
**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`