Skip to content

don't uppercase codeblocks inside <h5> headers #7734

@DetachHead

Description

@DetachHead

Context

No response

Description

h5 headers convert the text to uppercase (#1522). i don't have an issue with this behavior, but i think by default it should leave any text inside a <code> block as-is, because in most cases code is case-sensitive.

Related links

that issue proposed removing the uppercasing entirely. my proposal is to just remove it inside <code> blocks

Use Cases

API documentation generated by mkdocstrings puts function/class names in headings

Visuals

given the following markdown:

##### Difference between `Never` and `NoReturn`

current:
image

proposed:
image

Before submitting

Metadata

Metadata

Assignees

No one assigned

    Labels

    change requestIssue requests a new feature or improvementresolvedIssue is resolved, yet unreleased if open

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions