Markdown Latte filter
Tools for automatic work with markdown.
Basic use in Latte template:
That will generated
<div> automatically with the content:
<div class="markdown"> Final content... </div>
To easily style content within a particular project, the
<div> is automatically marked as a
|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
To override renderer please change definition of
markdown.renderer service in project
common.neon, or use some of these:
NoRenderer(return unchanged input),
v1.0.0 First release compatible with Nette 3.0