markup icon indicating copy to clipboard operation
markup copied to clipboard

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

Open RokeJulianLockhart opened this issue 2 months ago • 1 comments

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

RokeJulianLockhart avatar Oct 16 '25 14:10 RokeJulianLockhart

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Dec 16 '25 12:12 github-actions[bot]

@github-actions, see #issuecomment-2809414223.

RokeJulianLockhart avatar Dec 18 '25 20:12 RokeJulianLockhart