fix(core): update
This commit is contained in:
parent
989febe988
commit
d195535ca0
5
package-lock.json
generated
5
package-lock.json
generated
@ -2129,6 +2129,11 @@
|
|||||||
"jsdom": "^11.9.0"
|
"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": {
|
"tweetnacl": {
|
||||||
"version": "0.14.5",
|
"version": "0.14.5",
|
||||||
"resolved": "https://verdaccio.lossless.one/tweetnacl/-/tweetnacl-0.14.5.tgz",
|
"resolved": "https://verdaccio.lossless.one/tweetnacl/-/tweetnacl-0.14.5.tgz",
|
||||||
|
@ -24,7 +24,8 @@
|
|||||||
"@types/marked": "^0.6.5",
|
"@types/marked": "^0.6.5",
|
||||||
"@types/turndown": "^5.0.0",
|
"@types/turndown": "^5.0.0",
|
||||||
"marked": "^0.6.2",
|
"marked": "^0.6.2",
|
||||||
"turndown": "^5.0.3"
|
"turndown": "^5.0.3",
|
||||||
|
"turndown-plugin-gfm": "^1.0.2"
|
||||||
},
|
},
|
||||||
"files": [
|
"files": [
|
||||||
"ts/*",
|
"ts/*",
|
||||||
|
@ -16,6 +16,7 @@ export class SmartMarkdown {
|
|||||||
headingStyle: 'atx',
|
headingStyle: 'atx',
|
||||||
codeBlockStyle: 'fenced'
|
codeBlockStyle: 'fenced'
|
||||||
});
|
});
|
||||||
|
turndownInstance.use(plugins.turndownPluginGfm.gfm);
|
||||||
return turndownInstance.turndown(htmlString);
|
return turndownInstance.turndown(htmlString);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import marked = require('marked');
|
import marked = require('marked');
|
||||||
import turndown from 'turndown';
|
import turndown from 'turndown';
|
||||||
|
import * as turndownPluginGfm from 'turndown-plugin-gfm';
|
||||||
|
|
||||||
export { marked, turndown };
|
export { marked, turndown, turndownPluginGfm };
|
||||||
|
Loading…
Reference in New Issue
Block a user