Skip to content

Skipping multiple invalid characters not supported #15

@nsk7even

Description

@nsk7even

Sorry for having an evil exploit to this great extension.

The following chapter title produces an invalid reference:
## [ ] 1.2.3 Title

Generated reference in TOC:
- [[ ] 1.2.3 Title](#-123-title)

Correct reference:
- [[ ] 1.2.3 Title](#--123-title)


Same when using emoji icons from here: https://www.webfx.com/tools/emoji-cheat-sheet/

Example:
## ⬜ 1.2.3 Title

Will be included in TOC as:
- [⬜ 1.2.3 Title](#⬜-123-title)

Correction:
- [⬜ 1.2.3 Title](#-123-title)


Optional background for those who wonder of the use case: when producing a PDF, using the extension Markdown PDF, it generates checkboxes for these menu entries. The result is an automatically created short check list as an overview. The contents of the chapters that are prefixed with these checkboxes describe test scenarios.

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