Gathering detailed insights and metrics for micromark-extension-mdx-md
Gathering detailed insights and metrics for micromark-extension-mdx-md
Gathering detailed insights and metrics for micromark-extension-mdx-md
Gathering detailed insights and metrics for micromark-extension-mdx-md
micromark extension to turn some markdown features off for MDX
npm install micromark-extension-mdx-md
Typescript
Module System
Node Version
NPM Version
99.4
Supply Chain
97.5
Quality
75.4
Maintenance
100
Vulnerability
100
License
JavaScript (100%)
Total Downloads
184,176,837
Last Day
120,772
Last Week
2,205,988
Last Month
9,348,812
Last Year
87,328,457
MIT License
1 Stars
44 Commits
5 Watchers
1 Branches
11 Contributors
Updated on Sep 02, 2024
Minified
Minified + Gzipped
Latest Version
2.0.0
Package Id
micromark-extension-mdx-md@2.0.0
Unpacked Size
9.89 kB
Size
3.77 kB
File Count
5
NPM Version
9.6.4
Node Version
20.0.0
Published on
Jun 22, 2023
Cumulative downloads
Total Downloads
Last Day
-11.5%
120,772
Compared to previous day
Last Week
-7.3%
2,205,988
Compared to previous week
Last Month
4.4%
9,348,812
Compared to previous month
Last Year
66.8%
87,328,457
Compared to previous year
1
micromark extension to turn some markdown features off for MDX.
This package contains an extension to turn off some markdown constructs when parsing.
This project is useful when you want to disable support for code (indented), autolinks, and HTML (flow and text) in markdown.
You can use this extension when you are working with micromark
.
To support all MDX features, use
micromark-extension-mdxjs
instead.
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-md
In Deno with esm.sh
:
1import {mdxMd} from 'https://esm.sh/micromark-extension-mdx-md@2'
In browsers with esm.sh
:
1<script type="module"> 2 import {mdxMd} from 'https://esm.sh/micromark-extension-mdx-md@2?bundle' 3</script>
1import {micromark} from 'micromark' 2import {mdxMd} from 'micromark-extension-mdx-md' 3 4const output = micromark('\ta', {extensions: [mdxMd()]}) 5 6console.log(output)
Yields:
1<p>a</p>
This package exports the identifier mdxMd
.
There is no default export.
mdxMd()
Create an extension for micromark
to disable some CommonMark syntax (code
(indented), autolinks, and HTML (flow and text)) for MDX.
Extension for micromark
that can be passed in extensions
to disable some
CommonMark syntax for MDX (Extension
).
To improve authoring the new constructs MDX adds (ESM, expressions, and JSX), some markdown features are turned off by this extension. There are good alternatives.
Use fenced code instead. Change the following markdown:
1 console.log(1)
…into:
1```js
2console.log(1)
3```
Use links (with a resource or a reference) instead. Change the following markdown:
1<https://some-link-here.com>
…into:
1[descriptive text](https://and-the-link-here.com)
Use JSX instead: change <img>
into <img />
.
Not supporting HTML also means that HTML comments are not supported.
Use a comment in an empty expression instead.
Change <!-- comment -->
into {/* comment */}
.
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-md@^2
,
compatible with Node.js 16.
This package works with micromark@^3
.
This package is safe.
micromark-extension-mdxjs
— support all of MDXremark-mdx
— support all of MDX 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 dangerous workflow patterns detected
Reason
no binaries found in the repo
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
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
detected GitHub workflow tokens with excessive permissions
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 More