mirror of
https://github.com/10h30/wordpress-export-to-markdown.git
synced 2026-07-19 06:33:56 +09:00
Some console logs for stats
This commit is contained in:
+1
-4
@@ -1,7 +1,5 @@
|
||||
const turndown = require('turndown');
|
||||
|
||||
const shared = require('./shared');
|
||||
|
||||
function initTurndownService() {
|
||||
let turndownService = new turndown({
|
||||
headingStyle: 'atx',
|
||||
@@ -47,8 +45,7 @@ function initTurndownService() {
|
||||
turndownService.addRule('iframe', {
|
||||
filter: 'iframe',
|
||||
replacement: (content, node) => {
|
||||
let html = node.outerHTML
|
||||
.replace('allowfullscreen=""', 'allowfullscreen');
|
||||
let html = node.outerHTML.replace('allowfullscreen=""', 'allowfullscreen');
|
||||
return '\n\n' + html + '\n\n';
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user