pixel418/markdownify

The HTML to Markdown converter for PHP

Maintainers

👁 Pixel418
👁 tzi

Package info

github.com/Elephant418/Markdownify

Homepage

Type:lib

pkg:composer/pixel418/markdownify

Statistics

Installs: 874 648

Dependents: 10

Suggesters: 0

Stars: 196

Open Issues: 3

v2.3.3 2026-03-23 14:58 UTC

Requires

  • php: >=5.4.0

Requires (Dev)

Suggests

None

Provides

None

Conflicts

None

Replaces

None

MIT c148ed9eae72eb9ad90a8d19675cc3b98345d351

markdownhtmlconvertermarkdownify


README

👁 Tests
👁 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 and is compatible with PHP 8.5.
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