diff --git a/src/translator.js b/src/translator.js index a775a28..ce54c0c 100644 --- a/src/translator.js +++ b/src/translator.js @@ -37,12 +37,12 @@ function initTurndownService() { }); //
within can cause extra whitespace that wreck markdown links, so this removes them - turndownService.addRule('a', { - filter: 'a', - replacement: (content) => { - return content.replace(/<\/?div[^>]*>/gi, ''); - } - }); + // turndownService.addRule('a', { + // filter: 'a', + // replacement: (content) => { + // return content.replace(/<\/?div[^>]*>/gi, ''); + // } + // }); // preserve embedded scripts (for tweets, codepens, gists, etc.) turndownService.addRule('script', {