PHP code example of jidaikobo / php-markdown
1. Go to this page and download the library: Download jidaikobo/php-markdown 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/ */
jidaikobo / php-markdown example snippets
use Jidaikobo\MarkdownExtra;
$table = "
## heading
| Header 1 | Header 2 |
|----------|----------|
| Row 1 :| Cell 1 |
| Row 2 :| Cell 2 |
|:capt.
| scope row:| scope col |
|-----------|-----------|
| Row 1 :| Row2 |
";
$html = MarkdownExtra::defaultTransform($table);
echo $html;
MarkdownExtra::setTargetUrl('https://example.com');
MarkdownExtra::setReplacePath('/var/www/public_html/example.com');
bash
composer