transforms - object - (optional) Custom commands to transform block contents, see transforms & custom transforms sections below. If you have a mar

DavidWells / markdown-magic

submited by
Style Pass
2021-06-28 20:00:06

transforms - object - (optional) Custom commands to transform block contents, see transforms & custom transforms sections below.

If you have a markdown.config.js file where markdown-magic is invoked, it will automatically use that as the configuration unless otherwise specified by --config flag.

Markdown Magic comes with a couple of built in transforms for you to use or you can extend it with your own transforms. See 'Custom Transforms' below.

Markdown magic was designed to work synchronously. Mainly for simplicity & because it's not a serverside app and speed is not really an issue.

Plugins allow developers to add new transforms to the config.transforms object. This allows for things like using different rendering engines, custom formatting, or any other logic you might want.

View the raw source of this README.md file to see the comment block and see how the customTransform function in examples/generate-readme.js works

Leave a Comment
Related Posts