Gathering detailed insights and metrics for gatsby-transformer-remark-frontmatter
Gathering detailed insights and metrics for gatsby-transformer-remark-frontmatter
Gathering detailed insights and metrics for gatsby-transformer-remark-frontmatter
Gathering detailed insights and metrics for gatsby-transformer-remark-frontmatter
gatsby-transformer-remark
Gatsby transformer plugin for Markdown using the Remark library and ecosystem
remark-frontmatter
remark plugin to support frontmatter (yaml, toml, and more)
remark-mdx-frontmatter
A remark plugin for converting frontmatter metadata into MDX exports
remark-slate-transformer
remark plugin to transform remark syntax tree (mdast) to Slate document tree, and vice versa. Made for WYSIWYG markdown editor.
npm install gatsby-transformer-remark-frontmatter
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
14 Stars
17 Commits
4 Forks
1 Watching
2 Branches
1 Contributors
Updated on 21 Apr 2023
TypeScript (77.5%)
JavaScript (9.74%)
Shell (9.46%)
Nix (2.93%)
CSS (0.36%)
Cumulative downloads
Total Downloads
Last day
116.7%
13
Compared to previous day
Last week
26.2%
82
Compared to previous week
Last month
-18.9%
353
Compared to previous month
Last year
-13.6%
5,536
Compared to previous year
4
Allows querying Markdown frontmatter fields as markdown. Works for all string keys in frontmatter, including those that are under lists, as long as you can define a GraphQL schema.
npm i gatsby-transformer-remark-frontmatter
1// in your gatsby-config.js 2plugins: [ 3 'gatsby-transformer-remark', 4 'gatsby-transformer-remark-frontmatter' 5]
Add the @md
directive to fields in your GraphQL schema that you want to
parse as Markdown.
Clone the repository and run the example project with
npm run run-example
, or read the following:
Given the following markdown file
1--- 2templateKey: index-template 3sidebar: | 4 # Some Markdown Content 5 ![My Fancy Image](../image.png) 6list: 7 - item: | 8 # Currently Supported 9--- 10 11# Main Content 12 13Some Text
The following GraphQL schema can be combined with the query below to get the body content and the sidebar markdown as html.
Schema:
1type ListItem { 2 item: String @md 3} 4type Frontmatter @infer { 5 sidebar: String @md 6 list: [ListItem!] 7} 8type MarkdownRemark implements Node @infer { 9 frontmatter: Frontmatter! 10}
Query:
1query { 2 allMarkdownRemark(filter: { frontmatter: { templateKey: { eq: "index-template" } } }) { 3 html 4 frontmatter { 5 templateKey 6 sidebar { 7 html 8 } 9 list { 10 item { 11 html 12 } 13 } 14 } 15 } 16}
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
Found 0/17 approved changesets -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
license file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
103 existing vulnerabilities detected
Details
Score
Last Scanned on 2024-11-25
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More