Skip to content

md5 hash in table of contents when markdown header is inline code #865

@lucascool12

Description

@lucascool12

Problem Description

Having markdown headers with inline code creates md5 hash entries in the table of contents.

Steps to reproduce the behavior:

  1. Create a folder named foo add init.py file with the following contents
"""
# `very cool header`

irrelevant text
"""
  1. execute pdoc foo -o out
  2. open ./out/index.html
  3. Observe a md5-... entry in the table of contents

System Information

pdoc: 16.0.0
Python: 3.13.11
Platform: Linux-6.12.65-x86_64-with-glibc2.40

I have also reproduced this in pdoc 15.0.4, pdoc 15.0.3 does not have the md5 entry.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions