Skip to content

Faliure to generate TOC if the page contains <h1> in a code fence #156

@ChenKB91

Description

@ChenKB91

Hello, I was writing an article that explains some PHP code, and found this issue.

Steps to reproduce

Generate a page using the following markdown code:

{% toc %}
## aaa

### bbb

## ccc

```
 <h1>ddd</h1>
```

The generated TOC will only have a single entry "ddd". Is this an expected behavior?

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