From 4e1dc5b0f9a4e75b2a0f8daeab5b0b2ec5cda529 Mon Sep 17 00:00:00 2001 From: L4XB Date: Fri, 23 Oct 2026 04:07:23 +0200 Subject: [PATCH] fix(docs-governance): read a comment that starts a list item or a block quote line as an HTML block Only indentation counted as the start of a block, so '- \n\n" " [rest](missing-rest.md)\n\n" + # -- so does one that starts a list item or a block quote line -- + "- \n\n" + "> [quoted](missing-quoted.md)\n\n" + # -- after text in a list item, a comment is inline again -- + "- item \n\n" # -- a comment where a destination must begin does not make a definition -- "[foo]: missing-definition.md\n\n[foo]\n\n" "[bar]: \n\n[bar]\n\n" @@ -310,10 +315,13 @@ def test_artifact_scope_reads_html_comments_as_commonmark_does(project: Path) -> assert "Broken Markdown link: 'guide.md' -> 'missing-real.md'" in result.stdout assert "missing-hidden" not in result.stdout assert "missing-rest.md" not in result.stdout + assert "missing-listed.md" not in result.stdout + assert "missing-quoted.md" not in result.stdout + assert "Broken Markdown link: 'guide.md' -> 'missing-item-real.md'" in result.stdout assert "missing-definition.md" not in result.stdout assert "Broken Markdown link: 'guide.md' -> 'missing-titled.md'" in result.stdout assert "missing-fenced.md" not in result.stdout - assert result.stdout.count("Broken Markdown link") == 4, result.stdout + assert result.stdout.count("Broken Markdown link") == 5, result.stdout def test_artifact_scope_ignores_title_with_escaped_quotes(project: Path) -> None: