Skip to content

0.1.1

Choose a tag to compare

@dereuromark dereuromark released this 23 Oct 16:04

Fixes

  • CarveBehavior no longer saves a generated field that was set directly while its source field was not loaded. An entity loaded with only id and body_html could have body_html set to raw HTML and stored unrendered; such a value is now discarded.
  • File renders and string renders no longer share render cache keys, so a string can never be served a cached file render.
  • A relative includeRoot now expands includes instead of failing; it resolves against the current working directory.
  • RenderedCarve::meta() reads YAML frontmatter through symfony/yaml when the app has it, falling back to the yaml PHP extension. Before, it needed the extension and returned no metadata without it.

Improvements

  • labels overrides the strings the engine writes itself rather than the author, such as the footnote backlink or the table-of-contents label, keyed as in carve-php's HtmlRenderer::LABEL_DEFAULTS.
  • roundTripMode adds round-trip carriers to HTML and Markdown output.
  • renderers maps an extension name (mermaid, chart, math) to a closure that renders its source at build time in static mode. Setting it disables the render cache, since a closure cannot be keyed across requests.

With these, every carve-php render option is configurable under the Carve key; a test now fails if a new engine option is left out.

Full Changelog: 0.1.0...0.1.1