v0.13.0
Summary
Consolidates the two separate LiteXML CLI entry points (litexml-to-html in @haklex/rich-compose and litexml-to-lexical in @haklex/rich-litexml) into a single new package, @haklex/rich-litexml-cli, which exposes a unified litexml binary supporting --format html|json|markdown. Input format (LiteXML vs Lexical JSON) is auto-detected and overridable via --input-format. Markdown output is powered by @haklex/rich-headless $toMarkdown() and covers the full Haklex node set (mentions, footnotes, spoilers, KaTeX, code blocks, tables, …).
Breaking Changes
@haklex/rich-composeno longer ships thelitexml-to-htmlbinary. Use@haklex/rich-litexml-cli'slitexml --format htmlinstead.npx @haklex/rich-compose litexml-to-html input.xml→npx @haklex/rich-litexml-cli litexml input.xml --format html
@haklex/rich-litexmlno longer ships thelitexml-to-lexicalbinary. Use@haklex/rich-litexml-cli'slitexml --format jsoninstead.npx @haklex/rich-litexml litexml-to-lexical input.xml→npx @haklex/rich-litexml-cli litexml input.xml --format json
No library API exports were removed; only the CLI binaries shifted. Programmatic consumers of @haklex/rich-compose / @haklex/rich-litexml are unaffected.
Features
- New package
@haklex/rich-litexml-cli(litexmlbinary,--format html|json|markdown). - New Markdown output path driven by
@haklex/rich-headless$toMarkdown(). - Auto-detect input format (LiteXML vs Lexical JSON), with
--input-formatoverride. @haklex/rich-composeexposes new subpath exports./litexml-html-preview-client.jsand./litexml-html-preview-client.css(the React hydration bundle consumed by the new HTML preview CLI).
Bug Fixes
None this release.
Bump rationale
Shared version: 0.12.0 → 0.13.0 (minor)
| Package | Signal | Bump |
|---|---|---|
@haklex/rich-compose |
src/index.ts exports unchanged; new subpath exports ./litexml-html-preview-client.{js,css} (additive). Removed bin.litexml-to-html — replacement shipped same release. |
minor |
@haklex/rich-litexml |
src/index.ts exports unchanged; removed bin.litexml-to-lexical — replacement shipped same release. |
minor |
@haklex/rich-litexml-cli |
New package, initial publish at the shared version. | n/a |
34 other @haklex/* packages |
No src/** diff. |
follow shared bump |
max(bumps) = minor → 0.13.0.