Skip to content

Latest commit

 

History

History
34 lines (23 loc) · 750 Bytes

Readme.md

File metadata and controls

34 lines (23 loc) · 750 Bytes

Markdown2HTML and HTML2Markdown

This package is fake, he just put 2 packages together, I didn't do anything magical

Markdown to HTML and HTML to Markdown Conversion package

Installation

 composer require tilson/md2html-html2md

Usage

use Tilson\Md2htmlHtml2md\Md2HtmlHtml2MdConverter;

$md = "**teste**";
(new Md2HtmlHtml2MdConverter())->toHtml($md);
//output: <p><strong>teste</strong></p>

//==================================================

$html = "<p><strong>teste</strong></p>";
(new Md2HtmlHtml2MdConverter())->toMarkdown($html);
//output: **teste**

Credits

  • erusev/parsedown
  • league/html-to-markdown

License

The MIT License (MIT). Please see License File for more information.