Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/frontarm/mdx-util
Utilities for working with MDX
https://github.com/frontarm/mdx-util
jsx markdown mdx react
Last synced: 5 days ago
JSON representation
Utilities for working with MDX
- Host: GitHub
- URL: https://github.com/frontarm/mdx-util
- Owner: frontarm
- License: mit
- Created: 2017-02-04T04:24:25.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2022-02-26T01:37:21.000Z (almost 3 years ago)
- Last Synced: 2025-01-11T10:08:33.265Z (12 days ago)
- Topics: jsx, markdown, mdx, react
- Language: JavaScript
- Homepage:
- Size: 6.98 MB
- Stars: 711
- Watchers: 9
- Forks: 44
- Open Issues: 34
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
- awesome-list - mdx-util
README
mdx-util
========**A collection of utilities for working with MDX**
- [mdx-constant](./packages/mdx-constant)
Exports a constant from MDX files that don't explicitly define it. Useful for implementing front matter with [gray-matter](https://github.com/jonschlinkert/gray-matter).
- [mdx-loader](./packages/mdx-loader)
A batteries included loader for MDX.
* Emoji support via [remark-emoji](https://www.npmjs.com/package/remark-emoji)
* Image urls are automatically embedded as images via [remark-images](https://www.npmjs.com/package/remark-images)
* All headings have `id` slugs added via [remark-slug](https://github.com/remarkjs/remark-slug)
* Code blocks have markup for syntax highlighting via [prismjs](https://prismjs.com/) and [rehype-prism](https://github.com/mapbox/rehype-prism). *Note: you'll still need to import the prism stylesheet yourself.*
* Front matter is exported on a `frontMatter` object via [gray-matter](https://github.com/jonschlinkert/gray-matter).
* A table of contents object is exported on the `tableOfContents` object via [mdx-table-of-contents](./packages/mdx-table-of-contents).- [mdx-table-of-contents](./packages/mdx-table-of-contents)
An MDX plugin that exports a `tableOfContents` object, along with the exported component.
- [mdx.macro](./packages/mdx.macro)
An MDX macro to facilitate usage of MDX with [create-react-app](https://facebook.github.io/create-react-app/), *without* ejecting.