You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to get an object with both the HTML and the metadata.
Actual behavior
I only get HTML. It's as if the only thing this extension does is remove the frontmatter to leave only markdown? Any step in the right direction would be greatly appreciated.
Runtime
No response
Package manager
No response
OS
No response
Build and bundle tools
No response
The text was updated successfully, but these errors were encountered:
That’s not what this project does. micromark is a markdown parser. It parses markdown. This package is an extension for micromark to allow different fronmatter syntax extensions in markdown.
These things are not YAML parsers. If you want to parse YAML, use a YAML parser. And something that understands YAML frontmatter. Here’s a convenience wrapper to do both: https://github.com/vfile/vfile-matter.
Initial checklist
Affected packages and versions
2.0.0
Link to runnable example
No response
Steps to reproduce
I am trying to extract metadata from the frontmatter of a markdown file. The following code does work, but I only get the HTML from the markdown.
Expected behavior
I would like to get an object with both the HTML and the metadata.
Actual behavior
I only get HTML. It's as if the only thing this extension does is remove the frontmatter to leave only markdown? Any step in the right direction would be greatly appreciated.
Runtime
No response
Package manager
No response
OS
No response
Build and bundle tools
No response
The text was updated successfully, but these errors were encountered: