Skip to content

[Bug]: TOC ignore:true for first header remove that header #72

Description

@soroshsabz

ITNOA

in latest version 3.0.17 when I tried to use <!-- TOC ignore:true --> in first line before # first header, and then Update TOC, this plugin remove my first header. (this very strange)

I try your workaround in #40

<!-- TOC -->
<!--\TOC-->

but does not work too.

Reproduce steps:

  1. first if we have some markdown like below
<!-- TOC -->
<!--\TOC-->

<!-- TOC ignore:true -->
# ITNOA


<!-- TOC -->

- [ITNOA](#itnoa)
  - [Hooshang](#hooshang)
    - [Kamal](#kamal)
  - [Zooom](#zooom)

<!-- /TOC -->

salam

## Hooshang

Che khabar

### Kamal

kamalam ladlfasdf akjdf;adslkfja;dlkfj

## Zooom

Chakar mikoni
  1. Second if you right click and click Add markdown TOC: Insert/Update
  2. Third you can see below
<!-- TOC -->

- [ITNOA](#itnoa)
  - [Hooshang](#hooshang)
    - [Kamal](#kamal)
  - [Zooom](#zooom)

<!-- /TOC -->

salam

## Hooshang

Che khabar

### Kamal

kamalam ladlfasdf akjdf;adslkfja;dlkfj

## Zooom

Chakar mikoni

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions