Settings

Theme

Markdown to HTML Parser for PHP

github.com

4 points by oladoyinbov 2 years ago · 2 comments

Reader

oladoyinbovOP 2 years ago

Hello World! I created a new tool to convert markdowns to html using PHP.

> Why is this tool different from PHP ParseDown or any other markdown libraries?

Well, I created this tool as a wrapper of parseDown initially to fully support version php 8.x, since the parseDown library was originally built for PHP 5 and the library codebase hasn't been updated yet till now.

> So, what is so special about this tool?

I added more functionalities like converting markdown files to HTML files directly and also converting markdown contents to HTML files?

<?php

use FastVolt\Helper\Markdown;

$markdown = Markdown::new();

print $markdown -> setContent( "## Hello World" ) -> toHtml(); // <h2>Hello World</h2>

?>

So Easy and Expressive!!

> GITHUB REPO: https://github.com/fastvolt/markdown (Please star and contribute to improve the project :) )

ulrischa 2 years ago

Is there any concept for markdown to write more complex elements like a teaser or define an accordion? I like markdown but many websites need more than heading paragraphs, lists and the basic stuff.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection