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>
19 lines
541 B
Markdown
19 lines
541 B
Markdown
---
|
|
title: lib/writeback — Jupyter-style writeback
|
|
description: Persist run output in the entry .mq.md file
|
|
import:
|
|
writeback: lib/writeback.mq.md
|
|
---
|
|
|
|
# main
|
|
|
|
Writeback stores output in `<!-- marqdo-out … -->` blocks in the **entry** file (the one you run).
|
|
|
|
record value= — default: insert or replace the block below the call; at_end=true → single block at EOF.
|
|
|
|
get / clear — read or remove the adjacent block (or EOF block when at_end=true).
|
|
|
|
list — all output blocks in the entry file.
|
|
|
|
> print text=writeback overview ok
|