From 009fc4324338fb7492738731e04b1b09977db215 Mon Sep 17 00:00:00 2001 From: Eksperimental Date: Sun, 23 Nov 2025 13:51:54 -0500 Subject: [PATCH] Tighten up Markdownlint rule "Trailing punctuation in heading" Rule MD026 "Trailing punctuation in heading" is enforced, we simply remove `!` from the list of forbidden characters. Source: https://github.com/DavidAnson/markdownlint/blob/main/doc/md026.md --- .markdownlint-cli2.jsonc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.markdownlint-cli2.jsonc b/.markdownlint-cli2.jsonc index 320315ef3b7..4b35e0693b0 100644 --- a/.markdownlint-cli2.jsonc +++ b/.markdownlint-cli2.jsonc @@ -30,8 +30,12 @@ // Duplication is allowed for headings with different parents. "siblings_only": true }, - // Some headers finish with ! because it refers to a function name - "MD026": false, + // Trailing punctuation in heading. + // Some headers finish with ! because it refers to a function name. Therefore we remove ! from + // the default values. + "MD026": { + "punctuation": ".,;:。,;:!" + }, // Allow empty line between block quotes. Used by contiguous admonition blocks. "MD028": false, // Allowed HTML inline elements.