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
Train ML Models With SQL You Already Know Icon
Train ML Models With SQL You Already Know

BigQuery automates data prep, analysis, and predictions with built-in AI assistance.

Build and deploy ML models using familiar SQL. Automate data prep with built-in Gemini. Query 1 TB and store 10 GB free monthly.
Try Free
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