Skip to content

Releases

0.1.7

Choose a tag to compare

@dereuromark dereuromark released this 12 Nov 16:06
d90d2fd

symfony-carve 0.1.7 moves to carve-php 0.1.17 and Carve 0.1.14. Rendered HTML no longer ends with a line feed, and the formatter now writes the 0.1.14 table spellings.

Breaking

  • HTML from render(), renderResult(), renderFile() and renderFileWithReport()
    no longer ends with a final line feed, as the Carve HTML API specifies (#31)
  • HTML import in CarveTools and carve:convert no longer reads data-djot-*
    attributes (markup-carve/carve#5735)
  • The lint rule alias a11y/heading-jump is gone; use heading-level-skip

Improvements

  • Add carve:trace and CarveTools::trace(), which print carve-php's decision
    trace as JSON lines (#31)
  • format(), carve_format and carve:fmt write |= header cells, *** thematic
    breaks and braced table alignment (|={>}); the old |=> spelling is still read
    and is reported by the deprecated-cell-alignment lint rule (#31)
  • Require carve-php ^0.1.17 (#31)

Full Changelog: 0.1.6...0.1.7

0.1.6

Choose a tag to compare

@dereuromark dereuromark released this 23 Oct 12:50
ba96851

symfony-carve now requires carve-php ^0.1.14.

Improvements

  • Every render option is configurable: safe_mode: strict, on_disallowed, mode, soft_break_mode, xhtml, source_lines, smart_typography, symbols, labels. CarveRenderer::withOptions() and the Twig carve filter accept per-call overrides (#25)
  • carve-php extensions are configured under extensions by name or with options, including a wiki-link url_template (#25)
  • Optional render caching through any Symfony cache pool. File renders re-render when an include changes or appears (#25)
  • A CarveTools service formats (with alignTables), lints with every DocumentLinter rule, and imports Markdown, HTML and Djot (#25)
  • Twig gains carve_format, carve_file, carve_document (table of contents and frontmatter) and carve_lint (#25)
  • Console commands carve:render, carve:lint --include-root, carve:fmt --write/--check/--align-tables and carve:convert (#26)
  • A ValidCarve validator constraint with preset, strict, lint and maxLength (#26)

The first six CarveRenderer constructor arguments are unchanged. symfony/console and symfony/cache-contracts are now required.

Full Changelog: 0.1.5...0.1.6

0.1.5

Choose a tag to compare

@dereuromark dereuromark released this 21 Sep 19:30
513ee3a

Improvements

  • Opt-in file-backed rendering: set an absolute include_root and call CarveRenderer::renderFile() or renderFileWithReport(). The Twig filters and render() still take anonymous strings and never read files; a report carries the resolved and attempted include targets so an application can key its own cache on them, and warnings reaching the logger omit resolver details (#13)
  • Require carve-php ^0.1.9 for the include pass, and add psr/log at runtime for the optional warning logger (#13)

Full Changelog: 0.1.4...0.1.5

0.1.4

Choose a tag to compare

@dereuromark dereuromark released this 18 Aug 14:30
599b7f2

Security

  • A list-valued URL attribute is probed at every candidate, not at its head. srcset="safe.png 1x, javascript:alert(1) 2x" passed the probe on its second entry, because the value vouched for itself from its leading scheme. Comes from carve-php 0.1.5, now the required floor. Upgrade if you render untrusted Carve or import untrusted HTML.

Breaking

  • The carve_markdown filter's output changes: < is escaped only where it would open markup and a bare ampersand is left alone, so <tag> is written as a backslash escape rather than as an HTML entity.
  • A list-table header cell renders as <th scope="col"> rather than a bare <th>.

Improvements

  • Rendering profiles, plus plain-text and Markdown service and Twig output targets.

Full Changelog: 0.1.3...0.1.4

0.1.3

Choose a tag to compare

@dereuromark dereuromark released this 10 Aug 16:30
42dc347

Changed

  • Requires carve-php ^0.1.4, the current security and parser/writer convergence release.
  • Moves CI and dependency-drift workflows to the current GitHub Actions runtime.

The complete PHP/Symfony compatibility matrix, coding standards, PHPStan, and PHPUnit suite pass.

Full Changelog: 0.1.2...0.1.3

0.1.2

Choose a tag to compare

@dereuromark dereuromark released this 27 Jul 20:09
3d1c332

Improvements

  • diagrams config option for FencedRender presets (e.g. plantuml) on the bundle and renderer.
  • Require carve-php ^0.1.3 (cross-engine convergence).

Full Changelog: 0.1.1...0.1.2

0.1.1

Choose a tag to compare

@dereuromark dereuromark released this 10 Jul 00:23

Improvements

  • BREAKING: the namespace moved from MarkupCarve\Symfony to MarkupCarve\SymfonyCarve, aligning framework packages on repo-name symmetry with laravel-carve. Update imports and the bundle entry in config/bundles.php.

Full Changelog: 0.1.0...0.1.1

0.1.0

Choose a tag to compare

@dereuromark dereuromark released this 10 Jul 00:23

Initial release of the Symfony bundle for Carve markup.

  • CarveRenderer service rendering Carve to HTML via carve-php
  • carve Twig filter and carve() Twig function
  • Configurable safe-mode sanitization for untrusted content

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