mirror of
https://github.com/erusev/parsedown.git
synced 2023-08-10 21:13:06 +03:00
Implement Rule
This commit is contained in:
@ -334,24 +334,6 @@ class Parsedown
|
||||
return $Block;
|
||||
}
|
||||
|
||||
#
|
||||
# Rule
|
||||
|
||||
protected function blockRule(Context $Context)
|
||||
{
|
||||
$marker = $Context->line()->text()[0];
|
||||
|
||||
if (\substr_count($Context->line()->text(), $marker) >= 3 and \chop($Context->line()->text(), " $marker") === '') {
|
||||
$Block = [
|
||||
'element' => [
|
||||
'name' => 'hr',
|
||||
],
|
||||
];
|
||||
|
||||
return $Block;
|
||||
}
|
||||
}
|
||||
|
||||
#
|
||||
# Setext
|
||||
|
||||
|
Reference in New Issue
Block a user