feat: add config-option for fragment-index-divider (#20)

This commit is contained in:
Delta Umhöfer
2026-02-25 15:04:32 +01:00
committed by GitHub
parent f48932001a
commit 36ed1ee788
5 changed files with 47 additions and 1 deletions

View File

@@ -239,6 +239,16 @@ test("ensure the rule validates correctly", async (t) => {
},
},
},
{
name: "should be valid with multiple existing element id fragments",
fixturePath:
"test/fixtures/valid/existing-heading-fragment-divider/existing-heading-fragment.md",
config: {
"relative-links": {
"fragment-index-divider": "_",
},
},
},
{
name: "should ignore external image links",
fixturePath: "test/fixtures/valid/ignore-external-image.md",