Skip to content

@tableofcontents shows <tt> tags for MarkDown headings with inline code #11557

@2bndy5

Description

@2bndy5

Describe the bug
The following markdown

# Migration guide

@tableofcontents

## `isAckPayloadAvailable()`

causes <tt> tags to appear in the generated table of contents.

Screenshots

Image

The raw HTML:

<a href="#autotoc_md229">&lt;tt&gt;isAckPayloadAvailable()&lt;/tt&gt;</a>

To Reproduce
Use inline-code in markdown headings on a page where @tableofcontents is specified. Notice the ToC in the rendered (HTML) output includes unexpected <tt> tags.

Expected behavior
The ToC should not have <tt> tags. Rather, the inline code in the heading should be rendered with monospace font.

Version

doxygen --version
1.13.2 (26342b775ea25e6fefb53220926b20702c56fcb3)

On Linux (64-bit):

lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 24.04.2 LTS
Release:	24.04
Codename:	noble

Doxygen executable downloaded from doxygen.nl.

Additional context
I can test this on windows 11 (64-bit) later, if you think it matters.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions