Skip to content
This repository was archived by the owner on May 29, 2026. It is now read-only.
This repository was archived by the owner on May 29, 2026. It is now read-only.

lowercase fragment may not work in all markdown renderers #106

Description

@jtmoon79

Problem

A generated TOC entry will have a lowercased fragement.

e.g. given markdown

## Hello2

markdown-toc will generate markdown

- [Hello2](#hello2)

Some markdown renderers will not match the lowercase hello2 to the Capitalized string in the h2 header, e.g. <h2>Hello2</h2>. Clicking the Table Of Contents entry Hello2 will do nothing.

Solution

Add an option to disable lowercasing.
Something like lowercase:1 would enable lowercasing the fragment. lowercase:0 would disable lowercasing the fragement.

e.g.

<!-- TOC lowercase:0 depthFrom:1 depthTo:6 withLinks:1 updateOnSave:1 orderedList:0 -->

or

<!-- TOC lowercase:1 depthFrom:1 depthTo:6 withLinks:1 updateOnSave:1 orderedList:0 -->

Activity

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

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