How to use John Grubers Markdown markup?
- download markdownpmw.phpΔ and put it into your cookbook folder
- include this file with
For the translation itself we use Michel Fortin's PHP Markdown library.
markdown.php(last tested: PHP Markdown 1.0.1c) from here: http://www.michelf.com/projects/php-markdown/
- put it in the same folder as markdownpmw.php (normaly your cookbook folder)
The Markdown markup can be used by enclosing it in (:markdown:) and (:markdownend:):
(:markdown:) Test ==== (:markdownend:)
If you want to use it on many pages without PmWiki markup maybe you want to put these into your GroupHeader/GroupFooter.
I updated this recipe to work with PHP 5.5 and PHP 7.2, and tested it with the latest (as of 2012-10-14) versions of PHP Markdown (1.7.0) and PHP Markdown Classic (1.0.2). It works with both; by default the script is set to use the newer (1.7.0) version, but if you want to use classic just comment/uncomment the appropriate lines in the script. Said Achmiz October 14, 2017, at 01:12 AM
See discussion at MarkdownMarkupExtension-Talk