markdown-toc icon indicating copy to clipboard operation
markdown-toc copied to clipboard

TOC rendered as code block in files without <h1>

Open delucis opened this issue 10 years ago • 2 comments

If a TOC is added to a markdown file that is missing at least one first-level heading, the indentation of the list means it is interpreted as a code block and not rendered correctly.

This should probably be handled gracefully by default, but could also be addressed by a minimum depth option as described in #31.

delucis avatar Jun 30 '15 15:06 delucis

:+1: :+1:

getaaron avatar Dec 30 '15 00:12 getaaron

Yeah, this is very annoying:

grafik

rugk avatar Oct 14 '19 07:10 rugk