Update MD040/fenced-code-language to use case-sensitive comparison for allowed languages (fixes #627).

This commit is contained in:
Sébastien Règne 2022-11-06 01:41:27 +01:00 committed by GitHub
parent 30353cc733
commit b73ab7fd91
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 106 additions and 32 deletions

View file

@ -1648,8 +1648,8 @@ Plain text in a code block
````
You can configure the `allowed_languages` parameter to specify a list of
languages code blocks could use. The default value is `[]` which means any
language specifier is valid.
languages code blocks could use. Languages are case sensitive. The default value
is `[]` which means any language specifier is valid.
Rationale: Specifying a language improves content rendering by using the
correct syntax highlighting for code. More information:

View file

@ -36,8 +36,8 @@ Plain text in a code block
````
You can configure the `allowed_languages` parameter to specify a list of
languages code blocks could use. The default value is `[]` which means any
language specifier is valid.
languages code blocks could use. Languages are case sensitive. The default value
is `[]` which means any language specifier is valid.
Rationale: Specifying a language improves content rendering by using the
correct syntax highlighting for code. More information: