HckApm/node_modules/micromark-core-commonmark
minicx 99e5f883a3 second commit 2023-12-23 14:56:27 +03:00
..
dev second commit 2023-12-23 14:56:27 +03:00
lib second commit 2023-12-23 14:56:27 +03:00
index.d.ts second commit 2023-12-23 14:56:27 +03:00
index.js second commit 2023-12-23 14:56:27 +03:00
package.json second commit 2023-12-23 14:56:27 +03:00
readme.md second commit 2023-12-23 14:56:27 +03:00

readme.md

micromark-core-commonmark

Build Coverage Downloads Size Sponsors Backers Chat

micromark constructs that make up the core of CommonMark. Some of these can be turned off, but they are often essential to markdown and weird things might happen.

Contents

What is this?

This package exposes the default constructs.

When should I use this?

This package is useful when you are making your own micromark extensions.

Install

This package is ESM only. In Node.js (version 16+), install with npm:

npm install micromark-core-commonmark

In Deno with esm.sh:

import * as core from 'https://esm.sh/micromark-core-commonmark@1'

In browsers with esm.sh:

<script type="module">
  import * as core from 'https://esm.sh/micromark-core-commonmark@1?bundle'
</script>

Use

import {autolink} from 'micromark-core-commonmark'

console.log(autolink) // Do things with `autolink`.

API

This module exports the following identifiers: attention, autolink, blankLine, blockQuote, characterEscape, characterReference, codeFenced, codeIndented, codeText, content, definition, hardBreakEscape, headingAtx, htmlFlow, htmlText, labelEnd, labelStartImage, labelStartLink, lineEnding, list, setextUnderline, thematicBreak. There is no default export.

Each identifier refers to a construct.

See the code for more on the exported constructs.

Types

This package is fully typed with TypeScript. It exports no additional types.

Compatibility

Projects maintained by the unified collective are compatible with all maintained versions of Node.js. As of now, that is Node.js 16+. Our projects sometimes work with older versions, but this is not guaranteed.

This package works with micromark version 3+.

Security

This package is safe. See security.md in micromark/.github for how to submit a security report.

Contribute

See 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, organisation, or community you agree to abide by its terms.

License

MIT © Titus Wormer