mirror of
https://github.com/docsifyjs/docsify.git
synced 2026-10-17 04:31:18 +08:00
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:
@@ -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');
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user