yarlo-region-markdown
v0.2.0
Published
Parse and serialize Yarlo region-markdown (YAML frontmatter, HTML comment regions, pipes)
Readme
yarlo-region-markdown
Parse and serialize Yarlo “region markdown”: YAML frontmatter plus HTML comment regions (#region / #endregion) and inline <!-- [path]|pipes --> markers with chained pipes (list, json, slug, etc.).
API
parseRegionMarkdown(input, options?)— Returns{ frontmatter, data, warnings, operations? }.stringifyRegionMarkdown({ frontmatter?, leadingMarkdown?, regions, trailingMarkdown? })— Builds a.mdstring.formatRegionBlock(path, mode, pipes?, content)— One region block.registerPipe(name, handler)— Extend the built-in pipe registry.scanAllOperations(body)/applyPipeChain(raw, pipes, opts)— Lower-level building blocks.
Workspace
pnpm --filter yarlo-region-markdown build
pnpm exec vitest run --project yarlo-region-markdown