PHP code example of denshoch / dendenmarkdown

1. Go to this page and download the library: Download denshoch/dendenmarkdown 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/ */

    

denshoch / dendenmarkdown example snippets


$parser = new Denshoch\DenDenMarkdown;
$parser->tarnsform('Hello wolrd!');
// => <p>Hello wolrd!</p>

$options = array("autoTcyDigit" => 3, "autoTextOrientation" => true);
$parser = new Denshoch\DenDenMarkdown($options);
$parser.transform('10円玉と100円玉がある♡');
// => <p><span class="tcy">10</span>円玉と<span class="tcy">100</span>円玉がある<span class="upright">♡</span></p>