{"repo":"erusev/parsedown","free":true,"listed":false,"github":"https://github.com/erusev/parsedown","clone":"git clone https://github.com/erusev/parsedown.git","description":"Better Markdown Parser in PHP","language":"PHP","stars":15052,"topics":["markdown-parser","markdown","parser","php"],"license":"MIT","category":"productivity","readme_excerpt":"Parsedown Better Markdown Parser in PHP — demo Features - One file - No dependencies - Super fast - Extensible - GitHub flavored - Tested in PHP 7.1+ - Markdown Extra extension Installation Install the [composer package]: Or download the [latest release] and include Parsedown.php [composer package]: https://packagist.org/packages/erusev/parsedown \"The Parsedown package on packagist.org\" [latest release]: https://github.com/erusev/parsedown/releases/latest \"The latest release of Parsedown\" Example You can also parse inline markdown only: More examples in the wiki and in this video tutorial. Security Parsedown is capable of escaping user-input within the HTML that it generates. Additionally Parsedown will apply sanitisation to additional scripting vectors (such as scripting link destinations) that are introduced by the markdown syntax itself. To tell Parsedown that it is processing untrusted user-input, use the following: If instead, you wish to allow HTML within untrusted user-input, but still want output to be free from XSS it is recommended that you make use of a HTML sanitiser that allows HTML tags to be whitelisted, like HTML Purifier. In both cases you should strongly consider employing defence-in-depth measures, like deploying a Content-Security-Policy (a browser security feature) so that your page is likely to be safe even if an attacker finds a vulnerability in one of the first lines of defence above. Safe mode does not necessarily yield safe results when using extensi","default_branch":null,"files":null,"tree":[],"storefront":"/r/erusev","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/erusev/parsedown/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}