Skip to content

Comments

When rendering fenced code blocks, add language-LANG class as well.#380

Merged
nicholasserra merged 2 commits intotrentm:masterfrom
dkasak:fenced-code-block-additional-tag
Dec 18, 2020
Merged

When rendering fenced code blocks, add language-LANG class as well.#380
nicholasserra merged 2 commits intotrentm:masterfrom
dkasak:fenced-code-block-additional-tag

Conversation

@dkasak
Copy link
Contributor

@dkasak dkasak commented Dec 16, 2020

This enables better interoperability because other tools usually expect
this class when the language is specified for a code block (see:
https://html.spec.whatwg.org/multipage/text-level-semantics.html#the-code-element).

Fixes #370.

@nicholasserra
Copy link
Collaborator

LGTM thanks!

@nicholasserra nicholasserra merged commit cf9c53d into trentm:master Dec 18, 2020
@dkasak dkasak deleted the fenced-code-block-additional-tag branch April 29, 2021 15:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Choice of language class for fenced code blocks with the highlightjs-lang extension

2 participants