3 ms·
Hello HNF, I created a new library to help convert markdown content or file to HTML easily, it has support for newer version of PHP (v8.x). Usage: composer r
by oladoyinbov 3y ago
Hello HNF,
I created a new library to help convert markdown content or file to HTML easily, it has support for newer version of PHP (v8.x).
Usage:
composer require fastvolt/markdown
<?php
use FastVolt\Helper\Markdown;
$sample = " ## Hello, World ";
# init Markdown object
$html = Markdown::new();
# set markdown data to convert
$html -> setContent( $sample );
# convert data to markdown
print $html -> toHtml(); // <h2>Hello, World</h2>
- theschmed 3y agoHello! What was your motivation to create this vs using parsedown or another existing PHP HTML->Markdown solution?