Files
pandoc/test/command/11987.md
T
John MacFarlane 2512e1b6e7 Markdown writer: fix regression with code block language.
We try to identify which class is a language name and emit
that as the gfm style info string.

If none of the classes match a recognized language, before
3.10.1 we emitted the first class; fater 3.10.1, we emit
nothing. This commit reverts to the pre-3.10.1 behavior.

Closes #11987.
2026-10-24 16:28:23 -07:00

161 B

If no class matches a language, we just use the first one.

% pandoc -f native -t markdown
[ CodeBlock ( "" , [ "text" ] , [] ) "x" ]
^D
``` text
x
```