Download the PHP package baraja-core/markdown-latte-filter without Composer
On this page you can find all versions of the php package baraja-core/markdown-latte-filter. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download baraja-core/markdown-latte-filter
More information about baraja-core/markdown-latte-filter
Files in baraja-core/markdown-latte-filter
Package markdown-latte-filter
Short Description Tools for content rendering.
License
Homepage https://github.com/baraja-core/markdown-latte-filter
Informations about the package markdown-latte-filter
Markdown Latte filter
Tools for automatic work with markdown.
How to install
Simple call Composer command:
In project common.neon
you must define Latte extension and services.
Fully works example configuration is in common.neon
file in this package:
Latte filter
Basic use in Latte template:
That will generated <div>
automatically with the content:
To easily style content within a particular project, the <div>
is automatically marked as a markdown
class.
Filter |noescape
is not required, escaping and security is started automatically by inner logic.
Renderer as a service
In case of using Markdown renderer in an inner model or an application logic, you should inject the service by DIC.
Default renderer is CommonMarkRenderer
(package league/commonmark
).
To override renderer please change definition of markdown.renderer
service in project common.neon
, or use some of these:
NoRenderer
(return unchanged input),SimpleRenderer
(escape byhtmlspecialchars
function only).
All versions of markdown-latte-filter with dependencies
latte/latte Version ^2.9
nette/utils Version ^3.2
nette/application Version ^3.1
nette/di Version ^3.0
league/commonmark Version ^2.0
baraja-core/url Version ^1.1
baraja-core/markdown Version ^1.0