1
0
mirror of https://github.com/erusev/parsedown.git synced 2023-08-10 21:13:06 +03:00

Implement plaintext

This commit is contained in:
Aidan Woods
2019-01-20 02:33:14 +00:00
parent 25cf5a1729
commit 760945008b
2 changed files with 75 additions and 23 deletions

View File

@ -411,29 +411,6 @@ class Parsedown
return $Elements;
}
#
# ~
#
protected function inlineText($text)
{
$Inline = [
'extent' => \strlen($text),
'element' => [],
];
$Inline['element']['elements'] = self::pregReplaceElements(
$this->breaksEnabled ? '/[ ]*+\n/' : '/(?:[ ]*+\\\\|[ ]{2,}+)\n/',
[
['name' => 'br'],
['text' => "\n"],
],
$text
);
return $Inline;
}
protected function inlineCode($Excerpt)
{
$marker = $Excerpt['text'][0];