Gathering detailed insights and metrics for micromark-extension-mdx
Gathering detailed insights and metrics for micromark-extension-mdx
Gathering detailed insights and metrics for micromark-extension-mdx
Gathering detailed insights and metrics for micromark-extension-mdx
micromark extension to support MDX (agnostic to JavaScript)
npm install micromark-extension-mdx
Typescript
Module System
Node Version
NPM Version
94.2
Supply Chain
97.4
Quality
75.5
Maintenance
100
Vulnerability
100
License
JavaScript (100%)
Total Downloads
14,686,671
Last Day
1,685
Last Week
16,317
Last Month
71,978
Last Year
915,195
MIT License
6 Stars
44 Commits
5 Watchers
1 Branches
11 Contributors
Updated on Sep 02, 2024
Minified
Minified + Gzipped
Latest Version
2.1.0
Package Id
micromark-extension-mdx@2.1.0
Unpacked Size
12.00 kB
Size
4.14 kB
File Count
5
NPM Version
10.1.0
Node Version
20.8.1
Published on
Oct 19, 2023
Cumulative downloads
Total Downloads
Last Day
6.4%
1,685
Compared to previous day
Last Week
-8.9%
16,317
Compared to previous week
Last Month
9.3%
71,978
Compared to previous month
Last Year
-27%
915,195
Compared to previous year
micromark extensions to support MDX, unaware of JavaScript.
This package contains an extension that adds support for the syntax enabled
by MDX to micromark
.
This extension is used inside MDX.
It supports expressions, JSX, and turns some markdown features off.
It is not aware of the syntax of JavaScript inside expressions and does not
support export/imports.
You can use this extension when you are working with micromark
.
This project is useful when you want to support MDX, unaware of JavaScript, for
example because expressions can include Rust or variables or whatnot.
If you want to be aware of JavaScript, use
micromark-extension-mdxjs
.
Alternatively, you can also use the underlying syntax extensions separately:
micromark-extension-mdx-expression
— support MDX expressionsmicromark-extension-mdx-jsx
— support MDX JSXmicromark-extension-mdx-md
— turn some CommonMark features offWhen you need a syntax tree, combine this package with
mdast-util-mdx
.
All these packages are used in remark-mdx
, which focusses on
making it easier to transform content by abstracting these internals away.
This package is ESM only. In Node.js (version 16+), install with npm:
1npm install micromark-extension-mdx
In Deno with esm.sh
:
1import {mdx} from 'https://esm.sh/micromark-extension-mdx@2'
In browsers with esm.sh
:
1<script type="module"> 2 import {mdx} from 'https://esm.sh/micromark-extension-mdx@2?bundle' 3</script>
1import {micromark} from 'micromark' 2import {mdx} from 'micromark-extension-mdx' 3 4const output = micromark('a <b /> c {1 + 1} d', {extensions: [mdx()]}) 5 6console.log(output)
Yields:
1<p>a c d</p>
…which is useless: go to a syntax tree with
mdast-util-from-markdown
and
mdast-util-mdx
instead.
This package exports the identifier mdx
.
There is no default export.
The separate extensions support the development
condition.
Run node --conditions development module.js
to get instrumented dev code.
Without this condition, production code is loaded.
mdx()
Create an extension for micromark
to enable MDX syntax, unaware of JavaScript.
Extension for micromark
that can be passed in extensions
to enable MDX
syntax, unaware of JavaScript (Extension
).
For recommendations on how to author MDX, see each corresponding readme:
For info on the syntax of these features, see each corresponding readme:
For info on what errors are thrown, see each corresponding readme:
This package is fully typed with TypeScript. It exports no additional types.
Projects maintained by the unified collective are compatible with maintained versions of Node.js.
When we cut a new major release, we drop support for unmaintained versions of
Node.
This means we try to keep the current release line,
micromark-extension-mdx@^2
, compatible with Node.js 16.
This package works with micromark
version 3
and later.
This package is safe.
micromark-extension-mdxjs
— support MDX aware of JSmdast-util-mdx
— support MDX in mdastremark-mdx
— support MDX syntax in remarkSee contributing.md
in micromark/.github
for ways to get
started.
See support.md
for ways to get help.
This project has a code of conduct. By interacting with this repository, organization, or community you agree to abide by its terms.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
security policy file detected
Details
Reason
Found 0/30 approved changesets -- score normalized to 0
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
detected GitHub workflow tokens with excessive permissions
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Score
Last Scanned on 2025-06-09
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 Moremicromark-extension-mdx-expression
micromark extension to support MDX or MDX JS expressions
micromark-extension-mdx-jsx
micromark extension to support MDX or MDX.js JSX
micromark-extension-mdx-md
micromark extension to turn some markdown features off for MDX
micromark-extension-mdxjs
micromark extension to support MDX.js