summaryrefslogtreecommitdiff
path: root/packages/markdown/remark/test
diff options
context:
space:
mode:
authorGravatar Rafid Muhymin Wafi <rafidmuhymin@gmail.com> 2022-07-16 15:45:41 +0600
committerGravatar Fred K. Schott <fkschott@gmail.com> 2022-07-18 22:21:56 -0700
commitba11b33996d79c32da947986edb0f32dbcc04aaf (patch)
tree2611859694231eb797b895b573de0221b1a4da90 /packages/markdown/remark/test
parent4bb96ac8e5890a9a4320b1d5655e691ebf7924cd (diff)
downloadastro-ba11b33996d79c32da947986edb0f32dbcc04aaf.tar.gz
astro-ba11b33996d79c32da947986edb0f32dbcc04aaf.tar.zst
astro-ba11b33996d79c32da947986edb0f32dbcc04aaf.zip
Removes trailing dash from generated slugs in markdown (#3044)
* fixed header slugs in markdown if ends with a dash * added changeset * removes trailing dash only if slug was created * updated test * updated change level from patch to minor
Diffstat (limited to 'packages/markdown/remark/test')
-rw-r--r--packages/markdown/remark/test/expressions.test.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/markdown/remark/test/expressions.test.js b/packages/markdown/remark/test/expressions.test.js
index db351f9d8..828f70561 100644
--- a/packages/markdown/remark/test/expressions.test.js
+++ b/packages/markdown/remark/test/expressions.test.js
@@ -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>'
);
});