feat: rendering pipeline logic
This commit is contained in:
14
server/modules/rendering/markdown-expandtabs/renderer.js
Normal file
14
server/modules/rendering/markdown-expandtabs/renderer.js
Normal file
@@ -0,0 +1,14 @@
|
||||
const mdExpandTabs = require('markdown-it-expand-tabs')
|
||||
const _ = require('lodash')
|
||||
|
||||
// ------------------------------------
|
||||
// Markdown - Expand Tabs
|
||||
// ------------------------------------
|
||||
|
||||
module.exports = {
|
||||
init (md, conf) {
|
||||
md.use(mdExpandTabs, {
|
||||
tabWidth: _.toInteger(conf.tabWidth || 4)
|
||||
})
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user