Changelog
phil/markup-bundleAll notable changes to phil/markup-bundle will be documented in this file.
Updates should follow the Keep a CHANGELOG principles.
0.1.0-alpha - 2026-11-11
Added
MarkupFormats: the enabled formats by name, the default one, the labels of the formats of add-ons, and the level of a text lowered to its format's ceiling;UnavailableFormat, a format not enabled, aMarkupExceptionofphil/markup.UjoConverter: the reader of every enabled format, and a source read into a UJO document, its metadata and its JSON, at a level lowered to the format's ceiling.PhilMarkupBundleand thephil_markupconfiguration:formats, the enabled formats in the order a form offers them;default_format;default_level;levels, the highest level each format is purified at;added_formats, the formats add-ons bring — their label and the service of theirReaderProvider, given toDefaultCompiler—, which an add-on bundle prepends;media_hosts, the hosts images may come from.MarkupServices: the UJO renderer ofphil/ujo;DefaultCompilerrendering with it andSanitizerPurifier, aliased byMarkupCompilerandHtmlPurifier;Markup,MarkupFormatsandUjoConverter, public.MediaHostsPass: themedia_hostsgiven toSanitizerPurifieronce every bundle is loaded, so that a bundle registering the same adapter keeps them.SmartPunctuationCompilerandSmartPunctuationPass: smart punctuation in every format whenphil/typographyis installed — the HTML of the compiler through a typographer, before the purifier —, in the configured locale or that of Symfony'sLocaleSwitcher, with the typographers ofphil/typography-bundlewhen it registers them, and the formats it already fixes through the UJO renderer left to it; thesmart_punctuationconfiguration, to switch it off or fix its locale.MarkupFormatType: a choice of an enabled format, by name, the formats of add-ons with their label, registered when Symfony Form is installed, its labels in thephil_markuptranslation domain, in English and French.MarkupExtension: themarkup_html,markup_purifyandmarkup_ujoTwig filters, registered when Twig is installed.- The documentation in
doc/, indexed by the README. CONTRIBUTING.md,SECURITY.mdandCODE_OF_CONDUCT.md.