PHP / Modx
parsedownX for MODX Revolution
Author: Manuel InHertz - Website
Bugs and Requests: parsedownX Issues
parsedownX is the ultimate MODX Revolution snippet that can be used to parse Markdown to HTML from eather a file or a string.
Installing parsedownX for MODX Revolution
Go to System | Package Management on the main menu in the MODX Manager and click on the "Download Extras" button. That will take you to the Revolution Repository (AKA Web Transport Facility). Put parsedownX in the search box and press Enter. Click on the "Download" button, and when it changes to "Downloaded," click on the "Finish" button. That should bring you back to your Package Management grid. Right click on parsedownX and select "Install Package." The parsedownX snippet should now be installed.
How to use it
[parsedownX? &input=`` &file=`/path/to/file.md` &safe=`1` &inline=`0`]
Can also be used as an output modifier
To view the project code click on the link below: