micromark-extension-hashtag
v2.0.1
Published
Syntax-only [micromark][] extension for parsing hashtags.
Maintainers
Readme
micromark-extension-gfm-strikethrough
Syntax-only micromark extension for parsing hashtags.
Sentence.^[Footnote]Note this extension does not extend the html compiler. Instead, this is intended to be used together with mdast-util-hashtag which includes a utility for converting inline footnotes to GFM footnote reference/definition pairs.
Install
This package is ESM only. In Node.js (version 16+), install with npm:
npm install micromark-extension-hashtagIn Deno with esm.sh:
import { hashtag } from "https://esm.sh/micromark-extension-hashtag@1";In browsers with esm.sh:
<script type="module">
import { hashtag } from "https://esm.sh/micromark-extension-hashtag@1?bundle";
</script>API
This package exports the identifier hashtag.
There is no default export.
The export map supports the development condition.
Run node --conditions development module.js to get instrumented dev code.
Without this condition, production code is loaded.
hashtag()
Create an extension for micromark to enable hashtag syntax.
Returns
Extension for micromark that can be passed in extensions,
to enable hashtags (Extension).
Security
This package is safe.
