Skip to content

Commit

Permalink
Revert "Revert "Removes trailing dash from generated slugs in markdown (
Browse files Browse the repository at this point in the history
#3044)""

This reverts commit 7160bbe.
  • Loading branch information
FredKSchott committed Jul 18, 2022
1 parent 7160bbe commit 4555c8c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/cold-bears-sneeze.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@astrojs/markdown-remark': minor
---

fixed generated slugs in markdown that ends with a dash
2 changes: 1 addition & 1 deletion packages/markdown/remark/test/expressions.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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>'
);
});

Expand Down

0 comments on commit 4555c8c

Please sign in to comment.