Expand description
Line-based markdown scanning: fenced code blocks with info tags, and
<!-- soothfast:... --> markers. Deliberately not a markdown AST — we need
fences and comment markers only (dependency policy: no pulldown-cmark).
Structs§
- Bind
<!-- soothfast:bind path::to::item -->- Claim
Marker <!-- soothfast:claim item.backend.metric < value -->- Code
Block - One fenced code block.
- Doc
- Everything
scanextracts from one markdown file: fenced code blocks plussoothfast:bind/soothfast:claimmarkers, in document order.
Functions§
- scan
- Scan one markdown text. Closing markers (
<!-- /soothfast:... -->) are structural for readers and ignored here. Errs on an unclosed fence: dropping it would silently swallow the block and every later marker. - splice_
output - Replace (or insert) the
text soothfast-outputfence that follows thenthcapture-output block (0-based among capture blocks). Ok(None) when the capture block wasn’t found; Err on malformed markdown.