mirror of
https://github.com/Orc/discount.git
synced 2026-09-25 04:10:00 +03:00
Limit the depth of an ETX header to h6
This commit is contained in:
+2
-1
@@ -487,7 +487,8 @@ headerblock(Paragraph *pp, int htyp)
|
||||
* the leading and trailing `#`'s
|
||||
*/
|
||||
|
||||
for (i=0; (T(p->text)[i] == T(p->text)[0]) && (i < S(p->text)-1); i++)
|
||||
for (i=0; (T(p->text)[i] == T(p->text)[0]) && (i < S(p->text)-1)
|
||||
&& (i < 6); i++)
|
||||
;
|
||||
|
||||
pp->hnumber = i;
|
||||
|
||||
Reference in New Issue
Block a user