PHP code example of condenast-spain / parsedown

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

    

condenast-spain / parsedown example snippets


$parsedown = new Parsedown;
$parsedown->setSafeMode(true);

$parsedown = new Parsedown;
$parsedown->setMarkupEscaped(true);
 php
$Parsedown = new Parsedown();

echo $Parsedown->text('Hello _Parsedown_!'); # prints: <p>Hello <em>Parsedown</em>!</p>
// you can also parse inline markdown only
echo $Parsedown->line('Hello _Parsedown_!'); # prints: Hello <em>Parsedown</em>!