feat: sub+sup+imsize markdown renderers
This commit is contained in:
1 parent
09d1f580d9
commit
572393aa7b
13 files changed
+74
-19
No files matched your search
@@ -0,0 +1,17 @@
|
||||
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)
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user