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

Limit generated headlines to h6

This commit is contained in:
Jannik Zschiesche 2014-08-25 21:06:03 +02:00
parent 9437766539
commit 512cc1f065
3 changed files with 4 additions and 1 deletions

View File

@ -279,7 +279,7 @@ class Parsedown
$Block = array(
'element' => array(
'name' => 'h'.$level,
'name' => 'h' . min(6, $level),
'text' => $text,
'handler' => 'line',
),

View File

@ -4,5 +4,6 @@
<h4>h4</h4>
<h5>h5</h5>
<h6>h6</h6>
<h6>h6</h6>
<h1>closed h1</h1>
<p>#</p>

View File

@ -10,6 +10,8 @@
###### h6
####### h6
# closed h1 #
#