Download the PHP package php-collective/laravel-djot without Composer
On this page you can find all versions of the php package php-collective/laravel-djot. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download php-collective/laravel-djot
More information about php-collective/laravel-djot
Files in php-collective/laravel-djot
Package laravel-djot
Short Description Laravel integration for php-collective/djot — Blade directives, services, validation, and caching
License MIT
Homepage https://github.com/php-collective/laravel-djot
Informations about the package laravel-djot
Laravel Djot
Djot markup language integration for Laravel — Blade directives, services, validation, and caching.
Installation
The service provider and Djot facade alias are auto-discovered via Laravel's package discovery.
Optionally publish the config:
Usage
Blade Directives
Facade
Dependency Injection
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.
Validation Rule
Validate that a field contains valid Djot markup:
Documentation
Full documentation: php-collective.github.io/laravel-djot
- Installation
- Configuration
- Blade Usage
- Service Usage
- Validation
- Safe Mode
- Extensions
- Caching
- Djot Syntax
Demo Application
See the laravel-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 laravel-djot with dependencies
php-collective/djot Version ^0.1.24
illuminate/contracts Version ^11.0 || ^12.0 || ^13.0
illuminate/support Version ^11.0 || ^12.0 || ^13.0
illuminate/view Version ^11.0 || ^12.0 || ^13.0