{"repo":"thephpleague/commonmark","free":true,"listed":false,"github":"https://github.com/thephpleague/commonmark","clone":"git clone https://github.com/thephpleague/commonmark.git","description":"Highly-extensible PHP Markdown parser which fully supports the CommonMark and GFM specs.","language":"PHP","stars":2969,"topics":["php","commonmark","markdown","github-flavored-markdown","gfm","hacktoberfest"],"license":"BSD-3-Clause","category":"api-integrations-sdks","readme_excerpt":"league/commonmark league/commonmark is a highly-extensible PHP Markdown parser created by [Colin O'Dell][@colinodell] which supports the full [CommonMark] spec and [GitHub-Flavored Markdown]. It is based on the [CommonMark JS reference implementation][commonmark.js] by [John MacFarlane] \\([@jgm]\\). 📦 Installation & Basic Usage This project requires PHP 7.4 or higher with the mbstring extension. To install it via [Composer] simply run: The CommonMarkConverter class provides a simple wrapper for converting CommonMark to HTML: Or if you want GitHub-Flavored Markdown, use the GithubFlavoredMarkdownConverter class instead: Please note that only UTF-8 and ASCII encodings are supported. If your Markdown uses a different encoding please convert it to UTF-8 before running it through this library. [!CAUTION] If you will be parsing untrusted input from users, please consider setting the html input and allow unsafe links options per the example above. See for more details. If you also do choose to allow raw HTML input from untrusted users, consider using a library (like HTML Purifier) to provide additional HTML filtering. 📓 Documentation Full documentation on advanced usage, configuration, and customization can be found at [commonmark.thephpleague.com][docs]. ⏫ Upgrading Information on how to upgrade to newer versions of this library can be found at . 💻 GitHub-Flavored Markdown The GithubFlavoredMarkdownConverter shown earlier is a drop-in replacement for the CommonMarkConverter which","default_branch":null,"files":null,"tree":[],"storefront":"/r/thephpleague","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/thephpleague/commonmark/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."}