Add read-only TOML subset parse, HTML escape/unescape, and RFC 4648 base32 on encoding; gold tests and public demos included. Co-authored-by: Cursor <cursoragent@cursor.com>
535 B
535 B
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&"c'"
print text=
eu = > html.unescape text=eprint text=u
b = > enc.base32_encode text="hello"
print text=
bback = > enc.base32_decode text=bprint text=back