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

Implement Paragraph

This commit is contained in:
Aidan Woods
2019-01-20 02:31:18 +00:00
parent b53971e656
commit 18e239fba1
2 changed files with 78 additions and 30 deletions

View File

@ -288,36 +288,6 @@ class Parsedown
return \method_exists($this, 'block' . $Type . 'Complete');
}
#
# ~
#
protected function paragraph(Context $Context)
{
return [
'type' => 'Paragraph',
'element' => [
'name' => 'p',
'handler' => [
'function' => 'lineElements',
'argument' => $Context->line()->text(),
'destination' => 'elements',
],
],
];
}
protected function paragraphContinue(Context $Context, array $Block)
{
if (isset($Block['interrupted'])) {
return;
}
$Block['element']['handler']['argument'] .= "\n".$Context->line()->text();
return $Block;
}
#
# Inline Elements
#