6 Commits

Author SHA1 Message Date
ae580dd09e 2.0.4 2020-01-18 16:45:06 +00:00
f470e591cc fix(core): update 2020-01-18 16:45:05 +00:00
945b0ae8b8 2.0.3 2020-01-18 16:43:45 +00:00
ba90bb50a2 fix(core): update 2020-01-18 16:43:45 +00:00
72de4bfb7d 2.0.2 2019-06-17 14:41:57 +02:00
d195535ca0 fix(core): update 2019-06-17 14:41:57 +02:00
4 changed files with 476 additions and 585 deletions

1036
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,6 @@
{
"name": "@pushrocks/smartmarkdown",
"version": "2.0.1",
"version": "2.0.4",
"private": false,
"description": "do more with markdown files",
"main": "dist/index.js",
@ -12,19 +12,20 @@
"build": "tsbuild --web"
},
"devDependencies": {
"@gitzone/tsbuild": "^2.1.11",
"@gitzone/tsrun": "^1.2.6",
"@gitzone/tstest": "^1.0.24",
"@pushrocks/tapbundle": "^3.0.9",
"@types/node": "^12.0.8",
"tslint": "^5.17.0",
"@gitzone/tsbuild": "^2.1.17",
"@gitzone/tsrun": "^1.2.8",
"@gitzone/tstest": "^1.0.28",
"@pushrocks/tapbundle": "^3.2.0",
"@types/node": "^13.1.8",
"tslint": "^5.20.1",
"tslint-config-prettier": "^1.18.0"
},
"dependencies": {
"@types/marked": "^0.6.5",
"@types/marked": "^0.7.2",
"@types/turndown": "^5.0.0",
"marked": "^0.6.2",
"turndown": "^5.0.3"
"marked": "^0.8.0",
"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 };