Repository navigation
0.1.10
Breaking
- AST payload changes:
code_block.contentkeeps the break after its last line, escaped spaces and line-block columns arenon_breaking_spacenodes (U+E000 is literal, so reparse trees stored under the old marker), and class slots keep every authored entry viagetClassList()/setClassList()(#2468, #2585, #2755). - AST ingest is stricter: it refuses container-internal types in
children, afootnote_refwith no target and an empty admonitionkind, and the schema validator honorsnot(#2271, #2409). StoredPayloadUpgradeis removed (upgrade old payloads with 0.1.9 or earlier first), as areBlockParser's protected definition collectors andReferenceDefinitionExtractor::extract()/getLayoutEvents()(#2248, #2259).- HTML import uses PHP's native HTML5 parser on PHP 8.4+ and libxml below, so malformed HTML and diagnostics can differ by PHP version (#2546).
- HTML import puts a link's or span's edge whitespace outside it as one space, and the raw-keep report rows change (#2361, #2485).
- Parsing: a parenthesized link title is prose, a generated-content
:::kind is a directive,[-]-style checkboxes need the tasklist extension, and a"inside a quoted fence or directive title is dropped (#2195, #2329, #2376, #2398). - Output: every empty block container keeps one blank HTML body line, lone brackets inside spans, links and notes are always escaped, and the writer refuses an empty emphasis mark (#2207, #2256, #2487).
- The ProseMirror wire contract follows the pinned carve-grammars schema, adding directive, block extension, ruby and small-caps nodes; older payloads still read (#2407).
- The render-loss
codeenum closes atraw-format-droppedandruby-flattened,--report-conversion-diagnosticsno longer needs--carve, and--allow-lossaccepts two names instead of three (#2479).
Fixes
- Fences and comments inside containers keep their payload, blank lines and closers at the right column, without loosening lists or raising definition lists (#2598, #2609, #2671, #2725, #2732).
- Lists, quotes and continuation markers read tightness, lazy lines and interrupts at the column each item reaches (#2264, #2351, #2465, #2715, #2750).
- Tables: closed pipe rows under a paragraph stay text, spanning cells publish their extent, and a rowspan across row groups renders in one body (#2292, #2309, #2364, #2434).
- The Carve writer and
carve fmtwrite titles, figures, attribute lines, link padding and{loose}the way they read back (#2422, #2548, #2590, #2763). - Markdown output reads correctly in a GFM reader and keeps list items' blocks, tightness, fenced blank lines and frontmatter (#2446, #2500, #2742).
- The Markdown importer follows the shared converter corpus, so fences, lists, quotes, destinations, language hints and escapes match what
carve fmtwrites and cmark-gfm reads (#2266, #2280, #2282, #2676, #2677). - The HTML importer keeps headings, lists, code, tables and quotes nested under unsupported elements (importing a README used to lose them), keeps raw regions whole, and returns the document with a
diagnostics-truncatedrow at the diagnostic cap (#2297, #2424, #2474, #2505, #2521). - The Djot and BBCode importers keep heading continuations, escaped delimiters and formatting tags as the writer would spell them (#2213, #2673).
- Class hardening drops only the refused entry,
LinkPolicyreads the host a browser reads, and a denied-scheme destination imports as its content (#2327, #2334, #2617). - A
::: footnotesmarker inside a container renders where it stands, directive titles render where their region can hold them, and AST child mutations keep parent links consistent (#2352, #2395, #2550).
Improvements
- Editor-facing AST APIs for node identity, annotation ranges, provenance and reversible patches, plus editor sessions with bounded HTML streaming (#2456, #2624).
AstEnvelopereads and writes the versioned AST interchange envelope and refuses newer contracts, missing extensions and foreign vocabularies distinctly (#2453).- The Carve writer reports what it cannot spell through
--report-conversion-diagnostics(#2331). - Ruby annotations, line-block ranges, explicit sections, block table cells and block extensions with their fallback survive AST interchange (#2290, #2319, #2323).
- Figure nodes expose
getTargets(),getCaption()andgetCaptions()(#2260). carve lintgains reference, footnote and container diagnostics (#2417, #2600).--list-tablefor list-table import, and HTML import reads code-language hints from Sphinx, GitHub and MediaWiki wrappers (#2504, #2525).- Faster HTML rendering of nested lists and quotes, BBCode import, and HTML migration, which needs about a third fewer re-parses (#2220, #2247, #2477, #2766).
Details in the CHANGELOG.
Full Changelog: 0.1.9...0.1.10