marked-mathjax-extension

An mathjax extension for marked

MIT License

Stars
1

TODO:

  • Replace information in /README.md
  • Replace name in /rollup.config.umd.js
  • Replace information in /package.json
  • Write extension in /src/index.js
  • Write tests in /spec/index.test.js
  • Uncomment release in /.github/workflows/main.yml

marked-|this-extension|

Usage

import {marked} from "marked";
import |thisExtension| from "marked-|this-extension|";

// or ES Module script
// import marked from "https://cdn.jsdelivr.net/gh/markedjs/marked/lib/marked.esm.js";
// import |thisExtension| from "https://cdn.jsdelivr.net/gh/markedjs/marked-|this-extension|/lib/index.mjs";

const options = {
	// |default options|
};

marked.use(|thisExtension|(options));

marked.parse("|example markdown|");
// <p>|example html|</p>

options