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
Forever Free Full-Stack Observability | Grafana Cloud Icon
Forever Free Full-Stack Observability | Grafana Cloud

Our generous forever free tier includes the full platform, including the AI Assistant, for 3 users with 10k metrics, 50GB logs, and 50GB traces.

Built on open standards like Prometheus and OpenTelemetry, Grafana Cloud includes Kubernetes Monitoring, Application Observability, Incident Response, plus the AI-powered Grafana Assistant. Get started with our generous free tier today.
Create free account
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