PHP code example of cable8mm / commonmark-unfenced
1. Go to this page and download the library: Download cable8mm/commonmark-unfenced 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/ */
cable8mm / commonmark-unfenced example snippets
use Laravel\Unfenced\UnfencedExtension;
use League\CommonMark\Environment\Environment;
use League\CommonMark\Extension\CommonMark\CommonMarkCoreExtension;
use League\CommonMark\MarkdownConverter;
$environment = new Environment();
$environment->addExtension(new CommonMarkCoreExtension());
$environment->addExtension(new UnfencedExtension());
$converter = new MarkdownConverter($environment);
echo $converter->convert('...');
filename=src/Hello.php
// ...