Neptune: Planet or Myth?

    myst-transforms
    TypeScript icon, indicating that this package has built-in type declarations

    0.0.15 • Public • Published

    myst-transforms

    unifiedjs transforms for working with MyST Markdown documents.

    Overview

    These transforms take AST from mystjs and turn it into usable forms, enforce document structure, or provide other utilities.

    These utilities are available on npm:

    npm install myst-transforms

    You can use the plugins as follows:

    import { unified } from 'unified';
    import { mathPlugin } from 'myst-transforms';
    
    unified()
      .use(mathPlugin, { macros: {} }) // Add the plugin with any options
      .run(tree); // Run the AST through the set of plugins
    
    // The AST has now been modified in place.

    Keywords

    none

    Install

    npm i myst-transforms

    DownloadsWeekly Downloads

    217

    Version

    0.0.15

    License

    MIT

    Unpacked Size

    196 kB

    Total Files

    118

    Last publish

    Collaborators

    • rowanc1