add back missing ssr-utils.ts file (#3919)
This commit is contained in:
parent
056d4d5fd2
commit
01a55467d5
3 changed files with 15 additions and 1 deletions
5
.changeset/many-terms-do.md
Normal file
5
.changeset/many-terms-do.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
'@astrojs/markdown-remark': patch
|
||||
---
|
||||
|
||||
Add back missing ssr-utils.js file
|
|
@ -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",
|
||||
|
|
8
packages/markdown/remark/src/ssr-utils.ts
Normal file
8
packages/markdown/remark/src/ssr-utils.ts
Normal file
|
@ -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);
|
||||
}
|
Loading…
Reference in a new issue