PHP code example of davidpersson / markup

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

    

davidpersson / markup example snippets



use markup\Markdown;

$html = Markdown::parse('...markdown...');

// Reconfigure the steps to pass content through
// for all subsequent parsing.
Markdown::config([
	'normalize',
	'markdownExtra'
]);

// Or provide the steps ad hoc.
$html = Markdown::parse('...markdown...', [
	'normalize',
	'markdownExtra'
]);