Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
72de4bfb7d | |||
d195535ca0 | |||
989febe988 | |||
ebaa68a2fe |
7
package-lock.json
generated
7
package-lock.json
generated
@ -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",
|
||||
|
@ -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/*",
|
||||
|
@ -16,6 +16,7 @@ export class SmartMarkdown {
|
||||
headingStyle: 'atx',
|
||||
codeBlockStyle: 'fenced'
|
||||
});
|
||||
turndownInstance.use(plugins.turndownPluginGfm.gfm);
|
||||
return turndownInstance.turndown(htmlString);
|
||||
}
|
||||
}
|
||||
|
@ -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 };
|
||||
|
Reference in New Issue
Block a user