4 Commits

Author SHA1 Message Date
72de4bfb7d 2.0.2 2019-06-17 14:41:57 +02:00
d195535ca0 fix(core): update 2019-06-17 14:41:57 +02:00
989febe988 2.0.1 2019-06-17 12:08:57 +02:00
ebaa68a2fe fix(core): update 2019-06-17 12:08:56 +02:00
4 changed files with 13 additions and 5 deletions

7
package-lock.json generated
View File

@ -1,6 +1,6 @@
{
"name": "@pushrocks/smartmarkdown",
"version": "2.0.0",
"version": "2.0.2",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
@ -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

@ -1,6 +1,6 @@
{
"name": "@pushrocks/smartmarkdown",
"version": "2.0.0",
"version": "2.0.2",
"private": false,
"description": "do more with markdown files",
"main": "dist/index.js",
@ -9,7 +9,7 @@
"license": "MIT",
"scripts": {
"test": "tstest test/",
"build": "tsbuild"
"build": "tsbuild --web"
},
"devDependencies": {
"@gitzone/tsbuild": "^2.1.11",
@ -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 };