/parsedown_filter

Filter based on Parsedown Markdown parser with extra add-on

Primary LanguagePHPGNU General Public License v2.0GPL-2.0

Parsedown filter

Provides basic and optionally extra markdown filter integration for Backdrop input formats. Filter based on Parsedown markdown parser with Markdown Extra support.

Important note about running Parsedown filter with other input filters

Parsedown filter may conflict with other input filters, depending on the order in which filters are configured to apply. If using Parsedown filter produces unexpected markup when configured with other filters, experimenting with the the order of those filters will likely resolve the issue.

The "Limit allowed HTML tags" filter is a special case:

For best security, ensure that it is run after the Markdown Extra filter and that only markup you would like to allow in via HTML and/or Markdown Extra is configured to be allowed by it.

If you, on the other hand, want to make sure that all converted Markdown text is preserved, run it after the Markdown Extra filter. Note that blockquoting with Parsedown filter doesn't work when run after "Limit allowed HTML tags". It converts the ">".

Installation

Current Maintainer

Credits

License

The Backdrop module code is GPL v2 software, but the Parsedown and Parsedown Extra libraries are distributed under separate licence (MIT). See more details on the library pages for Parsedown and Parsedown Extra.