Revert "Revert "Removes trailing dash from generated slugs in markdown (#3044)""

This reverts commit 7160bbeede.
This commit is contained in:
Fred K. Schott 2022-07-18 14:32:29 -07:00
parent 7160bbeede
commit 4555c8cb0b
2 changed files with 6 additions and 1 deletions

View file

@ -0,0 +1,5 @@
---
'@astrojs/markdown-remark': minor
---
fixed generated slugs in markdown that ends with a dash

View file

@ -54,7 +54,7 @@ describe('expressions', () => {
chai
.expect(code)
.to.equal(
'<h1 id="-foo--is-a-shorthand-for--foo-foo-"><code is:raw>{ foo }</code> is a shorthand for <code is:raw>{ foo: foo }</code></h1>'
'<h1 id="-foo--is-a-shorthand-for--foo-foo"><code is:raw>{ foo }</code> is a shorthand for <code is:raw>{ foo: foo }</code></h1>'
);
});