comment out problematic rule for now

This commit is contained in:
Will Boyd
2025-04-01 16:32:21 -04:00
parent 2f62d9c8d7
commit 66e4d6b14f
+6 -6
View File
@@ -37,12 +37,12 @@ function initTurndownService() {
});
// <div> within <a> 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', {