michaelrsweet / htmldoc

HTML Conversion Software
https://www.msweet.org/htmldoc
GNU General Public License v2.0
208 stars 47 forks source link

Empty entry in TOC, when table is added between two H2's #503

Closed klartext closed 1 year ago

klartext commented 1 year ago

With this md-code:

# H1

## H2 - first

|Foo  |Bar  |
|-----|-----|
|01   |02   |

## H2 - second

I get three entries on the H2-level, two for the H2's and one empty one for the table.

toc-with empty-entry

michaelrsweet commented 1 year ago

Hmm, will need to look at the markdown parser to see what's up here...

michaelrsweet commented 1 year ago

[master cbf3130] Fix markdown parsing bug (Issue #503)