2018-05-24 21:31:48 +02:00
|
|
|
<?php
|
|
|
|
namespace Misuzu\Parsers;
|
|
|
|
|
|
|
|
use Parsedown;
|
|
|
|
|
2018-07-15 04:15:12 +02:00
|
|
|
class MarkdownParser extends Parsedown implements ParserInterface
|
2018-05-24 21:31:48 +02:00
|
|
|
{
|
2018-07-15 04:15:12 +02:00
|
|
|
public function parseText(string $text): string
|
2018-05-24 21:31:48 +02:00
|
|
|
{
|
2018-07-15 04:15:12 +02:00
|
|
|
return $this->text($text);
|
2018-05-24 21:31:48 +02:00
|
|
|
}
|
|
|
|
|
2018-07-15 04:15:12 +02:00
|
|
|
public function parseLine(string $line): string
|
2018-05-24 21:31:48 +02:00
|
|
|
{
|
2018-07-15 04:15:12 +02:00
|
|
|
return $this->line($line);
|
2018-05-24 21:31:48 +02:00
|
|
|
}
|
|
|
|
}
|