Access FrontMatter datas Component MDX
See original GitHub issueHi ! I add the plugin remark ‘remark-frontmatter’ to use frontmatter in yaml. When i show the component, the yaml is removed so it’s ok, but i don’t know how to get datas from it… If someone can help me ❤️
My webpac config loader :
{
loader: '@mdx-js/loader',
options: {
mdPlugins: [highlight, emoji, frontmatter],
type: 'yaml',
marker: '-',
fence: '---',
},
}
Issue Analytics
- State:
- Created 5 years ago
- Reactions:4
- Comments:13 (6 by maintainers)
Top Results From Across the Web
Frontmatter - MDX
Frontmatter. This guide explores how to support YAML frontmatter in MDX. MDX supports standard markdown syntax (CommonMark).
Read more >Accessing MDX Frontmatter in Gatsby - Noah Gilmore
On this blog's home page I use frontmatter of all the MDX documents, which includes things like title, date, and preview text, to...
Read more >Advanced Features: Using MDX - Next.js
Frontmatter is a YAML like key/value pairing that can be used to store data about a page. @next/mdx does not support frontmatter by...
Read more >Adding MDX Pages | Gatsby
Using frontmatter in MDX. Importing JSX components into MDX documents; Importing MDX files into JSX components; Defining a layout. Make components available ...
Read more >Markdown & MDX - Astro Documentation
Astro provides Markdown and MDX pages with a special frontmatter layout property that can specify a relative path (or alias) to an Astro...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Is exporting frontmatter an option for you? If not, why not?
That way you can easily access it while importing.
Yeap, I tried the 2 rules with OneOf Links of example for interessested it’s working ! 😄 I will go on this way, thanks you for you help 😉