renderer.js 325 B

123456789101112131415
  1. const mdMathjax = require('markdown-it-mathjax')()
  2. // ------------------------------------
  3. // Markdown - Mathjax Preprocessor
  4. // ------------------------------------
  5. module.exports = {
  6. key: 'markdown/mathjax',
  7. title: 'Mathjax Preprocessor',
  8. dependsOn: [],
  9. props: [],
  10. init (md, conf) {
  11. md.use(mdMathjax)
  12. }
  13. }