micromark-util-combine-extensions
    TypeScript icon, indicating that this package has built-in type declarations

    1.0.0 • Public • Published

    micromark-util-combine-extensions

    Build Coverage Downloads Size Sponsors Backers Chat

    micromark utility to combine syntax or html extensions.

    Contents

    Install

    npm:

    npm install micromark-util-combine-extensions

    Use

    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.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

    Install

    npm i micromark-util-combine-extensions

    DownloadsWeekly Downloads

    925,409

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    9.03 kB

    Total Files

    4

    Last publish

    Collaborators

    • wooorm