mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-16 14:00:13 +01:00
Update MD040/fenced-code-language to add language_only parameter to reject extra data in info string.
This commit is contained in:
parent
718de432f3
commit
72439f42c6
13 changed files with 176 additions and 1 deletions
25
test/md040-language_only.md
Normal file
25
test/md040-language_only.md
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
# md040-language_only.md
|
||||
|
||||
Fence code block information with leading whitespace:
|
||||
|
||||
``` html
|
||||
<h1>markdownlint</h1> {MD040:5}
|
||||
```
|
||||
|
||||
Fence code block information with trailing whitespace:
|
||||
|
||||
```css
|
||||
body {} {MD040:11} {MD009:11}
|
||||
```
|
||||
|
||||
Fence code block information with extra data:
|
||||
|
||||
```html version=5
|
||||
<title>MarkdownLint</title> {MD040:17}
|
||||
```
|
||||
|
||||
Fence code block information without whitespaces and extra data:
|
||||
|
||||
```css
|
||||
a {}
|
||||
```
|
||||
Loading…
Add table
Add a link
Reference in a new issue