### Basic Markdown Conversion Source: https://commonmark.thephpleague.com Converts a Markdown string to HTML using the default CommonMarkConverter. Requires the league/commonmark package. ```php use League\CommonMark\CommonMarkConverter; $converter = new CommonMarkConverter(); echo $converter->convert('# Hello World!'); //

Hello World!

``` -------------------------------- ### Markdown Conversion with Security Options Source: https://commonmark.thephpleague.com Converts Markdown to HTML while disabling raw HTML input and unsafe links. Useful for sanitizing user-provided Markdown. Requires the league/commonmark package. ```php use League\CommonMark\CommonMarkConverter; $converter = new CommonMarkConverter(['html_input' => 'escape', 'allow_unsafe_links' => false]); echo $converter->convert('# Hello World!'); //

Hello World!

``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.