Skip to content

Releases

cite-invoke v0.2.0 — unify {cite} and {anywidget} in MyST Markdown

Choose a tag to compare

@prakar prakar released this 29 Jul 19:47

A MyST Markdown directive that unifies {cite} and {anywidget} into one construct: citing a method and running it become the same authoring act.

:esm: path/to/your/widget.js
{
  "your_prop": "your default value"
}

emits two real, sibling AST nodes from one call — a citation node (participates in your project's bibliography, identical in kind to what {cite} itself produces) and an anywidget node (runs live, identical in kind to what {anywidget} itself produces).

Install

Add to your myst.yml:

project:
  plugins:
    - https://github.com/prakar/DeScideratum/releases/download/v0.2.0/cite-invoke.mjs

Status

Built against mystmd source at commit 4de8d726c6fc1ade6d5cb16a7a136534639497cb. The citation-node shape was an inference at write time from mystmd's own tokenizer and type definitions; confirmed correct via a live build on 2026-07-29 — the emitted citation renders with correct formatting and hover behavior, indistinguishable from an ordinary {cite} reference.

Known limitation, not caused by this plugin: MyST's current anywidget host throws MystAnyModel.save_changes not implemented yet if a widget attempts two-way model sync. Any widget used with {cite-invoke} should treat model writes as best-effort (try/catch, non-fatal).

Origin

Built for DeScideratum, a research prototype investigating citation-as-invocation in scientific publishing. As far as this project has determined — including a direct check against NeuroLibre, the closest comparable MyST-based effort — this is the first known implementation unifying MyST's citation and widget systems into a single construct.

MIT licensed.