1. Go to this page and download the library: Download php-markdown/parser 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/ */
$parser = new MarkdownParser(
maxBytes: 1_048_576, // default; larger input throws ParseException (checked before and after NFC normalization)
linkTarget: '_blank', // adds target="…" to every rendered link and autolink
linkRel: 'nofollow', // adds rel="…"; "noopener" is appended automatically when target is _blank
);
echo $parser->parse('[a](/x)');
// <p><a href="/x" target="_blank" rel="nofollow noopener">a</a></p>