Limits on fallback handling for unknown language hints in fenced code blocks
0 reputation · 08 Jul 2021, 09:07 UTC
Goal: Establish a predictable fallback behavior for fenced code blocks when the info string contains an unknown or unsupported language name.
Constraints: The GFM and CommonMark specifications allow any info string but do not define how renderers should react to unrecognized language hints, leading to inconsistent handling across processors such as GitHub’s renderer, commonmark.js, Pandoc, and Discount.
Questions: Should renderers treat an unknown language hint as plain text, apply generic syntax highlighting, or ignore the info string altogether? Is there a version‑specific expectation for GFM ≥ 5.2 that could guide a consistent fallback?