Transforms markdown and markdown extra to HTML and vice versa
Convert text to Markdown and MarkdownExtra and vice versa.
Install with composer:
$ composer require pstaender/silverstripe-markdown-parser
After flushing your cache you can use the convertes in any template:
<article> $Text.Markdown $Text.MarkdownExtra <p> $Title.InlineMarkdown </p> <p> $Title.InlineMarkdownExtra </p> <pre> $Content.HTMLToMarkdown </pre> </article>
Every converting should work as expected out of the box.
Under the hood the parsers
League\HTMLToMarkdown\HtmlConverter are used for conversion. Anyhow, if you need to different parsing options you can hook any parser with a custom
This module is under the MIT License.
Module rating system helping users find modules that are well supported. For more on how the rating system works visit Module standards
Score not correct? Let us know there is a problem