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

Implement Rule

This commit is contained in:
Aidan Woods
2019-01-20 02:28:17 +00:00
parent a95bc60c30
commit af97e99b39
2 changed files with 43 additions and 18 deletions

View File

@ -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