Skip to content

<!-- {docsify-ignore} --> sometimes being ignored #1355

Description

@jesobreira

Bug Report

Steps to reproduce

Run the script with the following README.md:

# Heading 1
Test
## Heading 2### Heading 3A
Lorem ipsum
#### Heading 4A <!-- {docsify-ignore} -->##### Heading 5A###### Heading 6A
Lorem ipsum
### Heading 3B
Lorem ipsum
#### Heading 4B <!-- {docsify-ignore} -->##### Heading 5B
Lorem ipsum

index.html:

<!DOCTYPE html><htmllang="en"><head><metacharset="UTF-8"><title>Test</title><metahttp-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /><metaname="description" content="Description"><metaname="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"><linkrel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify/lib/themes/vue.css"></head><body><divid="app"></div><script>window.$docsify={name: '',repo: ''}</script><scriptsrc="//cdn.jsdelivr.net/npm/docsify/lib/docsify.min.js"></script></body></html>

What is current behaviour

Heading 4A and its children get hidden, but Heading 4B doesn't.

What is the expected behaviour

Heading 4A and Heading 4B get hidden.

Other relevant information

  • Bug does still occur when all/other plugins are disabled?

  • Your OS: macOS Catalina

  • Node.js version: 12.18.3

  • npm/yarn version: 6.14.6

  • Browser version: Chrome Version 84.0.4147.135 (Official Build) (64-bit)

  • Docsify version: 4.11.6

  • Docsify plugins: none

Please create a reproducible sandbox

https://codesandbox.io/s/gallant-leaf-bz9n4

Mention the docsify version in which this bug was not present (if any)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugconfirmed as a bug

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions