mirror of
https://github.com/withastro/astro.git
synced 2025-01-20 22:12:38 -05:00
Revert "Removes trailing dash from generated slugs in markdown (#3044)"
This reverts commit 8530cce14f
.
This commit is contained in:
parent
497306178d
commit
7160bbeede
2 changed files with 1 additions and 6 deletions
|
@ -1,5 +0,0 @@
|
||||||
---
|
|
||||||
'@astrojs/markdown-remark': minor
|
|
||||||
---
|
|
||||||
|
|
||||||
fixed generated slugs in markdown that ends with a dash
|
|
|
@ -54,7 +54,7 @@ describe('expressions', () => {
|
||||||
chai
|
chai
|
||||||
.expect(code)
|
.expect(code)
|
||||||
.to.equal(
|
.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>'
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue