alanwalk / markdown-toc

MarkdownTOC(Table Of Contents) Plugin for Visual Studio Code.
MIT License
141 stars 111 forks source link

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

Open fractos opened 5 years ago

fractos commented 5 years ago

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
ghost commented 5 years ago

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

mcornella commented 4 years ago

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