wikijs-fork/server/modules/rendering/markdown-supsub/renderer.js
2018-09-09 23:19:46 -04:00

18 lines
353 B
JavaScript

const mdSub = require('markdown-it-sub')
const mdSup = require('markdown-it-sup')
// ------------------------------------
// Markdown - Subscript / Superscript
// ------------------------------------
module.exports = {
init (md, conf) {
if (conf.subEnabled) {
md.use(mdSub)
}
if (conf.supEnabled) {
md.use(mdSup)
}
}
}