micromark-util-combine-extensions

micromark utility to combine syntax or html extensions

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
micromark-util-combine-extensions
1.0.02 years ago2 years agoMinified + gzip package size for micromark-util-combine-extensions in KB

Readme

micromark-util-combine-extensions
!Buildbuild-badgebuild !Coveragecoverage-badgecoverage !Downloadsdownloads-badgedownloads !Sizebundle-size-badgebundle-size !Sponsorssponsors-badgeopencollective !Backersbackers-badgeopencollective !Chatchat-badgechat
micromark utility to combine syntax or html extensions.

Contents

*   [`combineExtensions(extensions)`](#combineextensionsextensions)
*   [`combineHtmlExtensions(htmlExtensions)`](#combinehtmlextensionshtmlextensions)

Install

npm install micromark-util-combine-extensions
## Use

```js
import {gfmAutolinkLiteral} from 'micromark-extension-gfm-autolink-literal'
import {gfmStrikethrough} from 'micromark-extension-gfm-strikethrough'
import {gfmTable} from 'micromark-extension-gfm-table'
import {gfmTaskListItem} from 'micromark-extension-gfm-task-list-item'
import {combineExtensions} from 'micromark-util-combine-extensions'

const gfm = combineExtensions([gfmAutolinkLiteral, gfmStrikethrough(), gfmTable, gfmTaskListItem])

API

This module exports the following identifiers: combineExtensions, combineHtmlExtensions. There is no default export.

combineExtensions(extensions)

Combine several syntax extensions into one.
Parameters
  • extensions (Extension[]) — List of syntax extensions
Returns
A single combined extension (Extension).

combineHtmlExtensions(htmlExtensions)

Combine several html extensions into one.
Parameters
  • htmlExtensions (HtmlExtension[]) — List of html extensions
Returns
A single combined html extension (HtmlExtension).

Security

See security.mdsecuritymd in micromark/.githubhealth for how to submit a security report.

Contribute

See contributing.mdcontributing in micromark/.githubhealth for ways to get started. See support.mdsupport for ways to get help.
This project has a code of conductcoc. By interacting with this repository, organisation, or community you agree to abide by its terms.

License

MITlicense © Titus Wormerauthor