Converters
Converters will convert incoming markup to something else, generally HTML. Sculpin ships with two converters, Markdown and Textile.
Markdown Converter
The Markdown Converter will convert .md
, .mdown
, .mkdn
and .markdown
files
using michelf/php-markdown.
Configuration
The Markdown Converter can be configured by adjusting the following
sculpin_kernel.yml
settings:
- sculpin_markdown.parser_class:
Can be one of
Sculpin\Bundle\MarkdownBundle\PhpMarkdownParser
orSculpin\Bundle\MarkdownBundle\PhpMarkdownExtraParser
. Default value isSculpin\Bundle\MarkdownBundle\PhpMarkdownParser
. A custom parser must implement theSculpin\Core\Converter\ParserInterface
. - sculpin_markdown.extensions:
Default value is
['md', 'mdown', 'mkdn', 'markdown']
.
Other Markdown Classes
Third party extensions are available to support other Markdown varieties. See the individual package README files for specific installation information.
- Bcremer\Sculpin\Bundle\CommonMarkBundle\SculpinCommonMarkBundle - Bundle that integrates the league/commonmark markdown parser.
Textile Converter
The Textile Converter will convert .textile
files using
netcarver/textile.
Configuration
The Textile Converter can be configured by adjusting the following
sculpin_kernel.yml
settings:
- sculpin_textile.extensions:
Default value is
['.textile']
.