Repository navigation
0.1.1
Fixes
CarveBehaviorno longer saves a generated field that was set directly while its source field was not loaded. An entity loaded with onlyidandbody_htmlcould havebody_htmlset 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
includeRootnow expands includes instead of failing; it resolves against the current working directory. RenderedCarve::meta()reads YAML frontmatter throughsymfony/yamlwhen the app has it, falling back to theyamlPHP extension. Before, it needed the extension and returned no metadata without it.
Improvements
labelsoverrides 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'sHtmlRenderer::LABEL_DEFAULTS.roundTripModeadds round-trip carriers to HTML and Markdown output.renderersmaps an extension name (mermaid,chart,math) to a closure that renders its source at build time instaticmode. 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