Skip to content
The HTML to Markdown converter for PHP
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src Clean up of unused fonction and parameter Feb 1, 2019
test Add test about unicode support Jan 27, 2019
.gitignore Allow to have unversioned local test files Jul 22, 2014
.travis.yml
CHANGELOG.md Next verison will be v2.3.1 Jan 22, 2019
LICENSE Next verison will be v2.3.1 Jan 22, 2019
README.md Since the LGPL-2 is deprecated, we relicencing under MIT licence Feb 4, 2018
composer.json Since the LGPL-2 is deprecated, we relicencing under MIT licence Feb 4, 2018
phpunit.xml Use PSR-4 instead of PSR-0 Sep 7, 2016

README.md

Markdownify

Build Status Total Downloads MIT

The HTML to Markdown converter for PHP

Code example | How to Install | How to Contribute | Author & Community

Code example

Markdown

$converter = new Markdownify\Converter;
$converter->parseString('<h1>Heading</h1>');
// Returns: # Heading

Markdown Extra as defined by @michelf

$converter = new Markdownify\ConverterExtra;
$converter->parseString('<h1 id="md">Heading</h1>');
// Returns: # Heading {#md}

How to Install

This library package requires PHP 5.4 or later.
Install Composer and run the following command to get the latest version:

composer require pixel418/markdownify

How to Contribute

  1. Fork the Markdownify repository
  2. Create a new branch for each feature or improvement
  3. Send a pull request from each feature branch to the v2.x branch

If you don't know much about pull request, you can read the Github article

Author & Community

Markdownify is under MIT License
It was created by Milian Wolff
It was converted to a Symfony Bundle by Peter Kruithof
It is maintained by Thomas ZILLIOX

You can’t perform that action at this time.