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
The full-stack observability platform that protects your dataLayer, tags and conversion data Icon
The full-stack observability platform that protects your dataLayer, tags and conversion data

Stop losing revenue to bad data today. and protect your marketing data with Code-Cube.io.

Code-Cube.io detects issues instantly, alerts you in real time and helps you resolve them fast. No manual QA. No unreliable data. Just data you can trust and act on.
Learn More
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