Skip to content

Table of contents is not rendered properly #3222

@nilsocket

Description

@nilsocket

Current behavior

Generated TOC, doesn't handle headers with links properly.

Markdown code

# Main Header

<!-- toc -->

- [Sub-Header1](#Sub-Header1)
- [[Sub-Header2](https://google.com)](#Sub-Header2)

<!-- tocstop -->

## Sub-Header1
## [Sub-Header2](https://google.com)

Rendered as

image

Expected behavior

Markdown code

# Main Header

<!-- toc -->

- [Sub-Header1](#Sub-Header1)
- [Sub-Header2](#Sub-Header2)

<!-- tocstop -->

## Sub-Header1
## [Sub-Header2](https://google.com)

Rendered as

image

Environment

  • Version : 0.12.1
  • OS Version and name : Linux nil 5.2.9-arch1-1-ARCH #1 SMP PREEMPT Fri Aug 16 11:29:43 UTC 2019 x86_64 GNU/Linux

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug 🐛Issue concerns a bug.level 1 ❕A bug that caused minor damage: App is still usable, but minor features might not work.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions