First public release of php-collective/laravel-djot — Laravel integration for the php-collective/djot markup parser, mirroring the feature set of the Symfony bundle.
Features
DjotConverter/DjotConverterInterfacewith safe mode, extensions and optional Laravel cache integrationDjotManagerfor working with multiple named converter profiles (default, user_content, docs, ...)LaravelDjotServiceProviderwith auto-discovery and publishableconfig/djot.phpDjotfacade (Djot::toHtml,::toHtmlRaw,::toText,::converter)- Blade directives:
@djot,@djotRaw,@djotText ValidDjotvalidation rule (IlluminateValidationRule), with optionalstrictmodeExtensionFactorycovering all 17 djot-php extensions (autolink, admonition, code_group, default_attributes, external_links, frontmatter, heading_level_shift, heading_permalinks, heading_reference, inline_footnotes, mentions, mermaid, semantic_span, smart_quotes, table_of_contents, tabs, wikilinks)- Support for Laravel 11.x, 12.x and 13.x (PHP 8.2+)
Demo
A full-featured demo app is available at php-collective/laravel-djot-demo.
Full Changelog: https://github.com/php-collective/laravel-djot/commits/0.1.0