Skip to content

0.1.10

Choose a tag to compare

@dereuromark dereuromark released this 29 Sep 22:41
· 1951 commits to main since this release
6d94607

Breaking

  • AST payload changes: code_block.content keeps the break after its last line, escaped spaces and line-block columns are non_breaking_space nodes (U+E000 is literal, so reparse trees stored under the old marker), and class slots keep every authored entry via getClassList() / setClassList() (#2468, #2585, #2755).
  • AST ingest is stricter: it refuses container-internal types in children, a footnote_ref with no target and an empty admonition kind, and the schema validator honors not (#2271, #2409).
  • StoredPayloadUpgrade is removed (upgrade old payloads with 0.1.9 or earlier first), as are BlockParser's protected definition collectors and ReferenceDefinitionExtractor::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 code enum closes at raw-format-dropped and ruby-flattened, --report-conversion-diagnostics no longer needs --carve, and --allow-loss accepts 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 fmt write 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 fmt writes 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-truncated row 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, LinkPolicy reads the host a browser reads, and a denied-scheme destination imports as its content (#2327, #2334, #2617).
  • A ::: footnotes marker 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).
  • AstEnvelope reads 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() and getCaptions() (#2260).
  • carve lint gains reference, footnote and container diagnostics (#2417, #2600).
  • --list-table for 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