PHP code example of kminek / marklink
1. Go to this page and download the library: Download kminek/marklink 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/ */
kminek / marklink example snippets
use Kminek\Marklink\ParserService;
$markdown = <<<MARKDOWN
- [Link A](http://a.example.com) - Link A description
- [Link B](http://b.example.com) - Link B description with [link](http://link.example.com)
MARKDOWN;
$parser = new ParserService;
$result = $parser->parse($markdown);