1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-12-02 22:49:09 +02:00

Clipper: Resolves #1669: Handle special case of code block used on Microsoft website

This commit is contained in:
Laurent Cozic
2019-06-22 18:57:41 +01:00
parent 5796dd2098
commit 21897a3cd4
9 changed files with 96 additions and 11 deletions

View File

@@ -8,6 +8,7 @@ class HtmlToMd {
const turndown = new TurndownService({
headingStyle: 'atx',
anchorNames: options.anchorNames ? options.anchorNames.map(n => n.trim().toLowerCase()) : [],
codeBlockStyle: 'fenced',
})
turndown.use(turndownPluginGfm)
turndown.remove('script');