Repository navigation
Releases
0.1.7
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()andrenderFileWithReport()
no longer ends with a final line feed, as the Carve HTML API specifies (#31) - HTML import in
CarveToolsandcarve:convertno longer readsdata-djot-*
attributes (markup-carve/carve#5735) - The lint rule alias
a11y/heading-jumpis gone; useheading-level-skip
Improvements
- Add
carve:traceandCarveTools::trace(), which print carve-php's decision
trace as JSON lines (#31) format(),carve_formatandcarve:fmtwrite|=header cells,***thematic
breaks and braced table alignment (|={>}); the old|=>spelling is still read
and is reported by thedeprecated-cell-alignmentlint rule (#31)- Require carve-php
^0.1.17(#31)
Full Changelog: 0.1.6...0.1.7
0.1.6
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 Twigcarvefilter accept per-call overrides (#25) - carve-php extensions are configured under
extensionsby name or with options, including a wiki-linkurl_template(#25) - Optional render caching through any Symfony cache pool. File renders re-render when an include changes or appears (#25)
- A
CarveToolsservice formats (withalignTables), lints with everyDocumentLinterrule, and imports Markdown, HTML and Djot (#25) - Twig gains
carve_format,carve_file,carve_document(table of contents and frontmatter) andcarve_lint(#25) - Console commands
carve:render,carve:lint --include-root,carve:fmt --write/--check/--align-tablesandcarve:convert(#26) - A
ValidCarvevalidator constraint withpreset,strict,lintandmaxLength(#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
Improvements
- Opt-in file-backed rendering: set an absolute
include_rootand callCarveRenderer::renderFile()orrenderFileWithReport(). The Twig filters andrender()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.9for the include pass, and addpsr/logat runtime for the optional warning logger (#13)
Full Changelog: 0.1.4...0.1.5
0.1.4
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_markdownfilter'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
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
Improvements
diagramsconfig 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
Improvements
- BREAKING: the namespace moved from
MarkupCarve\SymfonytoMarkupCarve\SymfonyCarve, aligning framework packages on repo-name symmetry with laravel-carve. Update imports and the bundle entry inconfig/bundles.php.
Full Changelog: 0.1.0...0.1.1
0.1.0
Initial release of the Symfony bundle for Carve markup.
CarveRendererservice rendering Carve to HTML via carve-phpcarveTwig filter andcarve()Twig function- Configurable safe-mode sanitization for untrusted content
Full Changelog: https://github.com/markup-carve/symfony-carve/commits/0.1.0