[–] oladoyinbov 2y 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<?phpuse 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 2y ago ↗ Hello!What was your motivation to create this vs using parsedown or another existing PHP HTML->Markdown solution?
[–] theschmed 2y ago ↗ Hello!What was your motivation to create this vs using parsedown or another existing PHP HTML->Markdown solution?
2 comments
[ 3.7 ms ] story [ 14.9 ms ] threadI 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>
What was your motivation to create this vs using parsedown or another existing PHP HTML->Markdown solution?