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

Merge pull request #208 from apfelbox/max-h6

Limit generated headlines to h6
This commit is contained in:
Emanuil Rusev 2014-08-26 09:31:52 +03:00
commit 0220a93010
3 changed files with 4 additions and 1 deletions

View File

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

View File

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

View File

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