You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
353 B

  1. const mdSub = require('markdown-it-sub')
  2. const mdSup = require('markdown-it-sup')
  3. // ------------------------------------
  4. // Markdown - Subscript / Superscript
  5. // ------------------------------------
  6. module.exports = {
  7. init (md, conf) {
  8. if (conf.subEnabled) {
  9. md.use(mdSub)
  10. }
  11. if (conf.supEnabled) {
  12. md.use(mdSup)
  13. }
  14. }
  15. }