Files
marqdo/ext/web/dom.mq.md
T
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

888 B

title, description, import
title description import
ext/web/dom DOM Artifact — Markdown/body to structure; raw HTML is escape hatch only (ADR 0007).
cap table
ext/web/_capability.mq.md lib/table.mq.md

from_markdown

+ `text`

Turn Markdown text into a simple DOM map {kind:"markdown", text} for page.render / web.render.

cap.load out = > table.put in=None at="kind" value="markdown" > table.put in=out at="text" value=text

raw

+ `html`

Escape hatch — wrap a raw HTML string. Prefer Markdown / View nodes.

cap.load out = > table.put in=None at="kind" value="raw" > table.put in=out at="html" value=html

render

+ `dom`

Render a DOM Artifact (markdown or raw) to HTML via native plugin.

cap.load kind = kind

  1. kind == "raw" html = html html

text = text > web_dom_markdown text=text