Download the PHP package php-collective/symfony-djot without Composer
On this page you can find all versions of the php package php-collective/symfony-djot. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download php-collective/symfony-djot
More information about php-collective/symfony-djot
Files in php-collective/symfony-djot
Package symfony-djot
Short Description Symfony bundle integration for php-collective/djot
License MIT
Homepage https://github.com/php-collective/symfony-djot
Informations about the package symfony-djot
Symfony Djot Bundle
Djot markup language integration for Symfony — Twig filters, services, forms, and validation.
Installation
Usage
Twig Filter
Service
Configuration
Multiple Converter Profiles
Use different configurations for different contexts:
Safe Mode
Safe mode is enabled by default for XSS protection. Disable only for trusted content:
Extensions
Enable djot-php extensions per converter:
Available extensions:
admonition- Admonition blocks (note, tip, warning, danger, etc.)autolink- Auto-convert URLs to clickable linkscode_group- Transform code-group divs into tabbed interfacesdefault_attributes- Add default attributes to elements by typeexternal_links- Configure external link behavior (target, rel)frontmatter- Parse YAML/TOML/JSON frontmatter blocksheading_level_shift- Shift heading levels up/downheading_permalinks- Add anchor links to headingsheading_reference- Link to headings with[text](#heading)syntaxinline_footnotes- Convert spans with class to inline footnotesmentions- Convert @username to profile linksmermaid- Render Mermaid diagram code blockssemantic_span- Convert spans to<kbd>,<dfn>,<abbr>elementssmart_quotes- Convert straight quotes to typographic quotestable_of_contents- Generate TOC from headingstabs- Tabbed content blocks (CSS or ARIA mode)wikilinks- Support[[Page Name]]wiki-style links
See Extensions documentation for detailed configuration options.
Form Type
Use the DjotType for form fields that accept Djot markup:
Validation
Validate that a field contains valid Djot markup:
Documentation
Full documentation: php-collective.github.io/symfony-djot
- Installation
- Configuration
- Twig Usage
- Service Usage
- Forms
- Validation
- Safe Mode
- Extensions
- Caching
- Djot Syntax
Demo Application
See the symfony-djot-demo for a complete example application.
What is Djot?
Djot is a modern light markup language created by John MacFarlane (author of CommonMark/Pandoc). It offers cleaner syntax and more features than Markdown while being easier to parse.
Learn more about Djot syntax at djot.net.
All versions of symfony-djot with dependencies
php-collective/djot Version ^0.1.24
symfony/form Version ^6.4 || ^7.0 || ^8.0
symfony/framework-bundle Version ^6.4 || ^7.0 || ^8.0
symfony/twig-bundle Version ^6.4 || ^7.0 || ^8.0
symfony/validator Version ^6.4 || ^7.0 || ^8.0