feat: page display + renderers reorg

This commit is contained in:
Nicolas Giard
2018-08-20 01:02:57 -04:00
parent 4bb522f9d9
commit db8e598e9a
36 changed files with 241 additions and 52 deletions

View File

@@ -0,0 +1,7 @@
key: markdownExpandtabs
title: Expand Tabs
description: Replace tabs with spaces in code blocks
author: requarks.io
dependsOn:
- markdownCore
props: {}

View File

@@ -0,0 +1,18 @@
const mdExpandTabs = require('markdown-it-expand-tabs')
const _ = require('lodash')
// ------------------------------------
// Markdown - Expand Tabs
// ------------------------------------
module.exports = {
key: 'markdown/expand-tabs',
title: 'Expand Tabs',
dependsOn: [],
props: ['tabWidth'],
init (md, conf) {
md.use(mdExpandTabs, {
tabWidth: _.toInteger(conf.tabWidth || 4)
})
}
}