From b1196a34c938815f66fa55bf7e1dfcd0be364664 Mon Sep 17 00:00:00 2001 From: len0rd Date: Thu, 2 Aug 2018 21:36:50 -0400 Subject: [PATCH] remove garbage --- prestart.js | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/prestart.js b/prestart.js index d323337..c8ae2b3 100644 --- a/prestart.js +++ b/prestart.js @@ -16,15 +16,6 @@ const showdown = require('showdown'), //handles adding classes to specific //tag types automatically -const bindings = Object.keys(classMap) - .map(key => ({ - - - type: 'output', - regex: new RegExp(`<${key}(.*?)>`, 'g'), - replace: `<${key} class="${classMap[key]}">` -})); - const addClass = { type: 'output', filter: text => { @@ -47,8 +38,7 @@ const addClass = { }; const converter = new showdown.Converter({ - extensions: [addClass]//bindings]//, - // noHeaderId: false // important to add this, else regex match doesn't work + extensions: [addClass] }); mkdirp(outputDir, (err) => {