This bundle provides filters, that can transform given content in various ways.
This bundle provides Twig magro
preformat, that can trigger some changes on input HTML source code.
Inside, there are several Preformatter, that manipulate with given code.
Currently defined Preformatters
- PreCodePreformatter - changes occurences of
in blocks into /--code source --
- CodePreformatter - changes occurences of
sourcein line into
Defining new Preformatter
- Preformatter must implement Preformatter\PreformatterInterface.
- Preformatter must be declared as a service with tag called "edge.preformatter". Optional priority might be specified. The higher priority, the sooner the service will be called. Default priority is 0.