Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 2 commits into from Dec 18, 2020

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.

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 trentm#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