1. Go to this page and download the library: Download whojinn/danraku 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/ */
whojinn / danraku example snippets
$environment = new Environment($config);
$environment
->addExtension(new CommonMarkCoreExtension())
->addExtension(new DanrakuExtension());
$converter = new MarkdownConverter($environment);
$markdown = 'この拡張機能は実によい・・・まさに革命的だ';
//<p> この拡張機能は実によい・・・まさに革命的だ</p>
echo $converter->convert($markdown);