Aggiunto Spagnolo, riconversione post Listed da HTML a Markdown

This commit is contained in:
2024-09-05 01:50:13 +02:00
parent 56de4209f1
commit 4811e9c53e
30 changed files with 1013 additions and 1250 deletions

View File

@ -0,0 +1,18 @@
const Exp = {};
const TurndownService = require('turndown');
const turndownService = (new TurndownService({
headingStyle: "atx",
hr: "---",
bulletListMarker: "*",
codeBlockStyle: "fenced",
fence: "```",
emDelimiter: "_",
strongDelimiter: "**",
linkStyle: "inlined",
}));
turndownService.keep(['span', 'small', 'sup', 'sub', 'table', 'dl', 'iframe', 'video', 'audio']);
Exp.Transform = (html) => turndownService.turndown(html);
module.exports = Exp;