Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TOC contains footnote numbers #5057

Closed
4 tasks done
chbndrhnns opened this issue Feb 16, 2023 · 2 comments
Closed
4 tasks done

TOC contains footnote numbers #5057

chbndrhnns opened this issue Feb 16, 2023 · 2 comments
Labels
bug Issue reports a bug upstream Issue must be taken upstream

Comments

@chbndrhnns
Copy link

Context

No response

Bug description

When adding a numbered footnote to a heading, the number appears in the generated table of content. I would want that number to be removed from the generated TOC.

Related links

Reproduction

example.zip

Steps to reproduce

  1. mkdocs serve
  2. See table of content in browser:

Screenshot 2023-02-16 at 14 32 02

Browser

No response

Before submitting

@squidfunk
Copy link
Owner

Thanks for reporting. The table of contents is generated by the Table of Contents extension, part of Python Markdown, so please raise an issue upstream. As a mitigation, you can use a custom label:

## Project Layout [^1] { data-toc-label="Project layout" }

@squidfunk squidfunk added bug Issue reports a bug upstream Issue must be taken upstream labels Feb 16, 2023
@chbndrhnns
Copy link
Author

Thanks, it seems an issue exists till 2018 already but it's untouched so far: Python-Markdown/markdown#660

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue reports a bug upstream Issue must be taken upstream
Projects
None yet
Development

No branches or pull requests

2 participants