Skip to content

Commit a01b6dd

Browse files
authored
fix(docs): scope fenced code language linting (#965)
1 parent daa7d7d commit a01b6dd

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

.markdownlint-cli2.jsonc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323
"MD024": { "siblings_only": true },
2424
// Bare URLs are fine in changelogs and tables.
2525
"MD034": false,
26+
// Internal docs commonly use bare fences for diagrams and terminal sketches.
27+
"MD040": false,
2628
// First line does not need to be a heading.
2729
"MD002": false,
2830
// Repo uses padded table pipes (`| foo | bar |`); rule default is "compact".

docs/.markdownlint-cli2.jsonc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
// MDX pages get their title from Fern frontmatter, not a top-level H1.
44
"MD041": false,
55
// MDX uses JSX components (<Callout>, <CodeBlock>, ...) that look like HTML.
6-
"MD033": false
6+
"MD033": false,
7+
// Published docs should label fenced code blocks for rendering and copy UX.
8+
"MD040": true
79
}
810
}

0 commit comments

Comments
 (0)