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