myst-transforms
v1.3.44
Published
`unifiedjs` transforms for working with MyST Markdown documents.
Readme
myst-transforms
unifiedjs transforms for working with MyST Markdown documents.
Overview
These transforms take AST from mystmd and turn it into usable forms, enforce document structure, or provide other utilities.
These utilities are available on npm:
npm install myst-transformsYou 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.