fix(core): update

This commit is contained in:
Philipp Kunz 2019-06-17 14:41:57 +02:00
parent 989febe988
commit d195535ca0
4 changed files with 10 additions and 2 deletions

5
package-lock.json generated
View File

@ -2129,6 +2129,11 @@
"jsdom": "^11.9.0"
}
},
"turndown-plugin-gfm": {
"version": "1.0.2",
"resolved": "https://verdaccio.lossless.one/turndown-plugin-gfm/-/turndown-plugin-gfm-1.0.2.tgz",
"integrity": "sha512-vwz9tfvF7XN/jE0dGoBei3FXWuvll78ohzCZQuOb+ZjWrs3a0XhQVomJEb2Qh4VHTPNRO4GPZh0V7VRbiWwkRg=="
},
"tweetnacl": {
"version": "0.14.5",
"resolved": "https://verdaccio.lossless.one/tweetnacl/-/tweetnacl-0.14.5.tgz",

View File

@ -24,7 +24,8 @@
"@types/marked": "^0.6.5",
"@types/turndown": "^5.0.0",
"marked": "^0.6.2",
"turndown": "^5.0.3"
"turndown": "^5.0.3",
"turndown-plugin-gfm": "^1.0.2"
},
"files": [
"ts/*",

View File

@ -16,6 +16,7 @@ export class SmartMarkdown {
headingStyle: 'atx',
codeBlockStyle: 'fenced'
});
turndownInstance.use(plugins.turndownPluginGfm.gfm);
return turndownInstance.turndown(htmlString);
}
}

View File

@ -1,4 +1,5 @@
import marked = require('marked');
import turndown from 'turndown';
import * as turndownPluginGfm from 'turndown-plugin-gfm';
export { marked, turndown };
export { marked, turndown, turndownPluginGfm };