Skip to content

0.1.0

Choose a tag to compare

@dereuromark dereuromark released this 23 Oct 15:06

First release of the CakePHP 5 plugin for Carve, the sibling of laravel-carve, symfony-carve and tempest-carve. Requires CakePHP 5.2+, PHP 8.2+ and markup-carve/carve-php ^0.1.14.

Features

  • CarveRenderer renders HTML, plain text and Markdown, formats and lints Carve, and imports Markdown, HTML, Djot and BBCode. render() returns a RenderedCarve with the table of contents, frontmatter and warnings.
  • The engine's render options are configurable under the Carve key: safe mode (true, false, 'strict'), profiles with onDisallowed, static mode, soft breaks, smart typography, symbols, source lines and file includes confined to includeRoot.
  • Named presets (default, comment, trusted, plus your own) and extensions (table of contents, heading permalinks, mentions, wikilinks, custom instances).
  • Optional render cache through CakePHP Cache, keyed on the source, the effective options and the engine version.
  • CarveHelper for templates and CarveView for .crv template files.
  • CarveValidation as a validator provider: profile violations, lint findings with rule filters, and plain-text length limits.
  • CarveBehavior renders a source field into HTML, plain-text and TOC fields on save.
  • bin/cake carve render, convert, format and lint commands.

Full Changelog: https://github.com/markup-carve/cakephp-carve/commits/0.1.0