mirror of https://github.com/requarks/wiki
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.
18 lines
353 B
18 lines
353 B
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)
|
|
}
|
|
}
|
|
}
|