Skip to content

[Bug] In a footnote, ~~~, with any syntax highlight designator – except txt – does not apply highlighting, and renders with a font-size < 1em. #2000

@RokeJulianLockhart

Description

@RokeJulianLockhart

As originally discussed at github-linguist/linguist/issues/7637, when a CommonMark <pre><code> (~~~) with a syntax highlight declaration (~~~RegEx) is utilised inside a Markdown footnote, its font-size reduces, and the syntax highlight designation is not applied, such that it reproduces issues/1851:

Reproductive Markup

[^1]

[^1]: ~~~MA
    "(?:(?:headers)|(?:cookies))"\s*:\s*(?:\{[^{}]*\}|\[[^\[\]]*\]|"[^"]*"|[^,}\]]*)(?:,)?\s*
    
    ~~~

Comparison Of Correct And Incorrect Presentation

~~~RegEx ~~~txt
Image Image

Affected

Details

  1. ValveSoftware/steam-for-linux/issues/12350#issuecomment-3392070179

1

Footnotes

  1. issues/1811

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions