Update getHeadingText helper to exclude HTML comments from returned heading text (fixes #1411).

This commit is contained in:
David Anson 2025-03-04 21:04:24 -08:00
parent d36a57d680
commit d5cb5c8546
4 changed files with 33 additions and 2 deletions

View file

@ -95,6 +95,12 @@ BB
{MD024:94}
## Headings <!-- that differ -->
## Headings <!-- in comments -->
{MD024:-2}
<!-- markdownlint-configure-file {
"heading-style": false,
"no-duplicate-heading": {