2 comments

[ 3.7 ms ] story [ 14.9 ms ] thread
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>

Hello!

What was your motivation to create this vs using parsedown or another existing PHP HTML->Markdown solution?