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

Closing triple-back-ticks after code block without new line breaks TOC

Open fractos opened this issue 6 years ago • 2 comments

Version 1.5.6

The following example will not show the Second section in the TOC until the closing triple back-ticks are put on their own line (e.g. add a newline after code but before the triple back-ticks in the example below).

# Title

## Table of Contents
<!-- TOC -->

- [Title](#title)
  - [Table of Contents](#table-of-contents)
  - [First section](#first-section)

<!-- /TOC -->

## First section

Example:
```code```

## Second section

fractos avatar Feb 13 '19 12:02 fractos

@fractos thanks for the workaround. This was driving me nuts.

ghost avatar Mar 09 '19 01:03 ghost

Inline code should use only one backtick (`). ``` is for multiline code. Duplicate of #69.

mcornella avatar Sep 23 '20 21:09 mcornella