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. If 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. Safe mode does not necessarily yield safe results when using extensions to Parsedown. Extensions should be evaluated on their own to determine their specific safety against XSS.

Features

  • Parsedown tries to read Markdown like a human
  • Parsedown recognizes blocks. It knows, for example, that if a line starts with a - then perhaps it belongs to a list
  • Parsedown is the first Markdown parser to use the "line based" approach
  • It passes most of the CommonMark tests
  • One file, no dependencies, and super fast
  • Extensible and tested in 5.3 to 7.3
  • Markdown Extra extension provided

Project Samples

Project Activity

See All Activity >

License

MIT License

Follow Parsedown

Parsedown Web Site

Other Useful Business Software
Cut Cloud Costs with Google Compute Engine Icon
Cut Cloud Costs with Google Compute Engine

Save up to 91% with Spot VMs and get automatic sustained-use discounts. One free VM per month, plus $300 in credits.

Save on compute costs with Compute Engine. Reduce your batch jobs and workload bill 60-91% with Spot VMs. Compute Engine's committed use offers customers up to 70% savings through sustained use discounts. Plus, you get one free e2-micro VM monthly and $300 credit to start.
Try Compute Engine
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Parsedown!

Additional Project Details

Programming Language

PHP

Related Categories

PHP HTML XHTML, PHP Code Generators

Registered

2021-04-20