About PHP Markdown
PHP Markdown is a library that parses Markdown syntax and converts it to HTML, making it easy to write and format content without using HTML tags. It includes the original Markdown parser and PHP Markdown Extra with additional features. The library requires PHP 7.4 or later and supports modern autoloading practices. It's ideal for developers who need a reliable tool for processing Markdown content in their applications.
FAQ
This library package requires PHP 5.3 or later. Note that the older plugin/library hybrid package for PHP Markdown and PHP Markdown Extra is still maintained and will work with PHP 4.0.5 and later.
With class autoloading in place, putting the 'Michelf' folder in your include path should be enough for this to work. Use the static defaultTransform function found inside the parser class, for example: use Michelf\Markdown; $my_html = Markdown::defaultTransform($my_text);
Yes, if you cannot use class autoloading, you can still use include or require to access the parser. To load the Michelf\Markdown parser, do it this way: require_once 'Michelf/Markdown.inc.php'; Or, if you need the Michelf\MarkdownExtra parser: require_once 'Michelf/MarkdownExtra.inc.php';
To file bug reports, please use the issue tracker or send an email to michel.fortin@michelf.ca. Please include with your report: (1) the example input; (2) the output you expected; (3) the output PHP Markdown actually produced.
Version numbers are of the form major.minor.patch. The public API of PHP Markdown consists of the two parser classes Markdown and MarkdownExtra, their constructors, the transform and defaultTransform functions, and their configuration variables. The public API is stable for a given major version number.
PHP Markdown Lib is released under a license that permits redistribution and use in source and binary forms, with or without modification, provided that the copyright notice, this list of conditions, and the following disclaimer are retained.
Alternatives to consider
See all alternativesBadges
Promote PHP Markdown giving it more exposure, by adding these badges to your website, documentation, or product listing. Each badge links back to PHP Markdown page on Webfolio.
<a href="https://www.webfolio.to/tools/php-markdown?utm_source=badge&utm_campaign=badge" target="_blank" rel="noopener noreferrer"><img src="https://www.webfolio.to/badges/featured_color.svg" alt="Featured on Webfolio" style="max-width: 150px" /></a>
Categories
Claim this tool
Are you the founder? Claim your profile to update details and track views.