Skip to content

Commit

Permalink
add back missing ssr-utils.ts file (#3919)
Browse files Browse the repository at this point in the history
  • Loading branch information
FredKSchott authored Jul 14, 2022
1 parent 056d4d5 commit 01a5546
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/many-terms-do.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@astrojs/markdown-remark': patch
---

Add back missing ssr-utils.js file
3 changes: 2 additions & 1 deletion packages/markdown/remark/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"homepage": "https://astro.build",
"main": "./dist/index.js",
"exports": {
".": "./dist/index.js"
".": "./dist/index.js",
"./ssr-utils": "./dist/ssr-utils.js"
},
"scripts": {
"prepublish": "pnpm build",
Expand Down
8 changes: 8 additions & 0 deletions packages/markdown/remark/src/ssr-utils.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/** Utilities used in deployment-ready SSR bundles */
import Slugger from 'github-slugger';

const slugger = new Slugger();
/** @see {@link "/packages/astro/vite-plugin-markdown"} */
export function slug(value: string): string {
return slugger.slug(value);
}

0 comments on commit 01a5546

Please sign in to comment.