Code & Deploy
siGit Code
Git Hosting
Toggle menu
siGit Code
Git Hosting
Sign in
Sign in
@davoodmehraban89
/
medusa
Fork
0
medusa
/
www
/
packages
/
remark-rehype-plugins
/
src
/
attach-frontmatter-data.ts
Code
Commits
Issues
Pulls
Cloud Agent
CICD
project/medusa-foundation-audit
automation/medusa-upstream-review
main
project/medusa-foundation-audit
security/codeql-dependabot-gitleaks
ts
9 lines
215 Bytes
Copy permalink
Copy
Raw
1
import
{
Transformer
}
from
"
unified
"
2
3
export
function
remarkAttachFrontmatterDataPlugin
():
Transformer
{
4
return
async
(
tree
,
file
)
=>
{
5
const
{
matter
}
=
await
import
(
"
vfile-matter
"
)
6
7
matter
(
file
)
8
}
9
}