{"repo":"remcohaszing/remark-mdx-frontmatter","free":true,"listed":false,"github":"https://github.com/remcohaszing/remark-mdx-frontmatter","clone":"git clone https://github.com/remcohaszing/remark-mdx-frontmatter.git","description":"A remark plugin for converting frontmatter metadata into MDX exports","language":"JavaScript","stars":145,"topics":["frontmatter","markdown","markdown-frontmatter","mdast","mdx","remark","remark-plugin","toml","unified","yaml"],"license":"MIT","category":"productivity","readme_excerpt":"remark-mdx-frontmatter A remark plugin for converting frontmatter metadata into MDX exports Table of Contents - Installation - Usage - API - Options - Compatibility - License Installation This package depends on the AST output by remark-frontmatter Usage This remark plugin takes frontmatter content, and outputs it as JavaScript exports. Both YAML and TOML frontmatter data are supported. For example, given a file named example.mdx with the following contents: The following script: Roughly yields: API The default export is a remark plugin. Options - default : The default value to export if no frontmatter data is found. (Default: undefined ). - name : The identifier name of the variable the frontmatter data is assigned to. (Default: frontmatter ). - parsers : A mapping A mapping of node types to parsers. Each key represents a frontmatter node type. The value is a function that accepts the frontmatter data as a string, and returns the parsed data. By default yaml nodes will be parsed using yaml and toml nodes using toml . In addition it supports unist-util-mdx-define options. Compatibility This project is compatible with Node.js 18 or greater. License MIT © Remco Haszing","default_branch":null,"files":null,"tree":[],"storefront":"/r/remcohaszing","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/remcohaszing/remark-mdx-frontmatter/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}