fix: enhance slugify function to handle markdown links (#2697)

* fix: enhance slugify function to handle markdown links

* chore: replace conventional-changelog with standard-version for changelog generation
This commit is contained in:
Luffy
2026-03-29 13:43:45 +08:00
committed by GitHub
parent 9000471f94
commit 0784ebc8e4
7 changed files with 1308 additions and 1077 deletions
+5
View File
@@ -212,5 +212,10 @@ describe('core/render/slugify', () => {
const quoteCleanedSlug = slugify('"The content"');
expect(quoteCleanedSlug).toBe('the-content');
const markdownLinkSlug = slugify(
'[5.0.0-rc.4](https://github.com/docsifyjs/docsify/compare/v5.0.0-rc.3...v5.0.0-rc.4) (2026-03-11)',
);
expect(markdownLinkSlug).toBe('_500-rc4-2026-03-11');
});
});