diff options
author | Waylan Limberg <waylan@gmail.com> | 2011-10-30 17:28:56 -0400 |
---|---|---|
committer | Waylan Limberg <waylan@gmail.com> | 2011-10-30 17:28:56 -0400 |
commit | c53307a4d555c04e97739fefe0cafc2e97d55328 (patch) | |
tree | b1161ea088aa28f1de63528d791d8fc5db75054e /tests/misc/nested-patterns.txt | |
parent | e8cdb0b4e56666a69a61ae1e56d32cb05c3404b5 (diff) | |
download | markdown-c53307a4d555c04e97739fefe0cafc2e97d55328.tar.gz markdown-c53307a4d555c04e97739fefe0cafc2e97d55328.tar.bz2 markdown-c53307a4d555c04e97739fefe0cafc2e97d55328.zip |
Fixed #49. Don't crash on poorly/randomly ordered header levels. Maybe someday we will better support any input (patches welcome), but we should never crash on poorly formatted input text. With this fix, we catch the exception and skip over it. The TOC up to the point (and perhaps after) still gets rendered. The incomplete TOC should be the clue to the document author that s/he has a formatting error in the document.
Diffstat (limited to 'tests/misc/nested-patterns.txt')
0 files changed, 0 insertions, 0 deletions