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