PHP code example of monkeyscloud / monkeyslegion-markdown

1. Go to this page and download the library: Download monkeyscloud/monkeyslegion-markdown library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

monkeyscloud / monkeyslegion-markdown example snippets


use MonkeysLegion\Markdown\MarkdownRenderer;

$renderer = new MarkdownRenderer();
$html = $renderer->render('# Hello World

This is **bold** and *italic*.

- Item 1
- Item 2
');

echo $html;

@markdown($post->body)