mirror of
https://github.com/erusev/parsedown.git
synced 2023-08-10 21:13:06 +03:00
Implement plaintext
This commit is contained in:
@ -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];
|
||||
|
Reference in New Issue
Block a user