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:
commit
0220a93010
@ -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',
|
||||||
),
|
),
|
||||||
|
@ -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>
|
@ -10,6 +10,8 @@
|
|||||||
|
|
||||||
###### h6
|
###### h6
|
||||||
|
|
||||||
|
####### h6
|
||||||
|
|
||||||
# closed h1 #
|
# closed h1 #
|
||||||
|
|
||||||
#
|
#
|
Loading…
Reference in New Issue
Block a user