Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Fix duplicate heading id #1401
Marked version: 0.5.2
Markdown flavor: All
This fixes several bugs involving
This adds a new export
I added several more tests to cover duplicates as well as ampersands.
In most cases, this should be a different person than the contributor.
we also need to test for Flet/github-slugger#20
expect(slugger.slug('test 1')).toBe('test-1'); expect(slugger.slug('test')).toBe('test'); expect(slugger.slug('test')).toBe('test-2');
expect(slugger.slug('foo'), 'foo') expect(slugger.slug('foo'), 'foo-1') expect(slugger.slug('foo 1'), 'foo-1-1') expect(slugger.slug('foo-1'), 'foo-1-2') expect(slugger.slug('foo'), 'foo-2')
Just to make sure I'm up to speed on the header conversation and whatnot. We're adding slugger to fix a defect, which is header duplication. We are still experiencing issues with unicode characters like Japanese and other glyph languages. And we are still progressing toward dropping header ID generation in the future. Yeah?
We're receiving errors for this latest update (
Are you overwriting the renderer methods?
If so, try passing new Slugger()