You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
311 B
12 lines
311 B
<?php declare(strict_types=1);
|
|
|
|
use parkdown\Parkdown;
|
|
|
|
function createTest(string $source, string $target) : array {
|
|
$strip = function(string $string) : string {
|
|
return trim(preg_replace("/\s+/", "", $string));
|
|
};
|
|
|
|
$parkdown = new Parkdown($source);
|
|
return [$strip($target), $strip($parkdown->html())];
|
|
} |