ci(lint): relax markdown checks for github html

This commit is contained in:
Thibault VINCENT
2026-05-01 02:13:37 +02:00
parent 30d1174718
commit bd088e9894
2 changed files with 8 additions and 1 deletions
+7
View File
@@ -9,6 +9,13 @@
// Duplicate headings: allow when in different sections (e.g. "## Why"
// can appear under multiple top-level headings).
"MD024": { "siblings_only": true },
// Inline HTML: keep the rule active but whitelist the elements we
// actually use for the centered header (logo <picture>/<source>/<img>,
// badge bloc <div>/<p>, soft line break <br>). Anything else still
// gets flagged. MD041 (first-line H1) is left at default; the README
// intentionally opens with HTML for the centered logo and silences
// MD041 on its first line via an inline directive.
"MD033": { "allowed_elements": ["p", "picture", "source", "img", "div", "br"] },
},
"ignores": [
// Auto-generated by release-please from Conventional Commits.
+1 -1
View File
@@ -1,4 +1,4 @@
<!-- markdownlint-disable-next-line MD041 -->
<p align="center">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="docs/assets/logo-dark.webp">