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.

14 lines
319 B

  1. const mdExpandTabs = require('markdown-it-expand-tabs')
  2. const _ = require('lodash')
  3. // ------------------------------------
  4. // Markdown - Expand Tabs
  5. // ------------------------------------
  6. module.exports = {
  7. init (md, conf) {
  8. md.use(mdExpandTabs, {
  9. tabWidth: _.toInteger(conf.tabWidth || 4)
  10. })
  11. }
  12. }