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>
432 B
432 B
title, description, import
| title | description | import | ||
|---|---|---|---|---|
| lib/json — JSON | Shared EN/ZH path; parse and stringify (code-as-docs pilot) |
|
main
Shared JSON helpers for EN and ZH docs. Prefer parse, stringify, and quote. Build maps with tables or table.put — not json.set chains.
obj = [json.parse] text="{}"
ty = [type] obj
打印 内容=ty
out = [json.stringify] value=obj
打印 内容=out