Skip to content

0.1.17

Choose a tag to compare

@dereuromark dereuromark released this 12 Nov 10:04
fa017b5

carve-php 0.1.17 implements the Carve 0.1.14 spec: + attaches blocks the same way in every container, comments no longer split what is around them, and an unclosed attribute brace stays literal text. Markdown import follows CommonMark 0.31.

Breaking

  • CarveConverter::convert() and convertWithReport() return HTML without the final newline; render() and streaming keep it (#4050).
  • carve fmt writes thematic breaks as *** (#4516).
  • Lint rule ids were merged or retired (table-marker-run-padding, fence-delimiter-indentation, raw-block-syntax, the a11y/heading-jump alias). Update suppressions that name them (#3976, #4446, #4454, #5068).
  • The HTML importer no longer reads data-djot-* carriers (carve#5735, #5068).
  • ProseMirrorRenderer writes carvePos only with withSourcePositions() (#4949).

Fixes

  • Security: the ProseMirror bridge and Markdown import drop link, image and attribute values whose scheme the HTML target denies (carve#6009, #5193, #5194).
  • Lists, notes, quotes and fences keep their lines across lazy lines, blank runs, comments and tabs, as the spec defines.
  • carve --ast no longer crashes on a file containing {{ (#4614).

Improvements

  • Lint suppression comments and a set of authoring rules for Markdown habits (#4192, #4482).
  • carve trace <file> prints the block decision trace (#4294).
  • Long documents parse and lint in linear time.

Full Changelog: 0.1.16...0.1.17