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>
551 B
551 B
title, description, import
| title | description | import | ||||
|---|---|---|---|---|---|---|
| Mid stdlib — regex and encoding | lib/re + lib/encoding without plugins (Mid M1) |
|
Regex and encoding in lib/
Mid-tier stdlib: everyday primitives stay in lib/, not ABI plugins.
main
ok = > re.is_match text="user@example.com" pattern="^[^@]+@[^@]+$"
tok = > enc.base64_encode text="marqdo"
hex = > enc.hex_encode text="ok"
print text=
okprint text=tokprint text=hex
ok
print text=mid-m1-ok
print text=mid-m1-fail