forked from microsoft/vscode-pull-request-github
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmdRenderer.ts
More file actions
25 lines (22 loc) · 741 Bytes
/
mdRenderer.ts
File metadata and controls
25 lines (22 loc) · 741 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import * as MarkdownIt from 'markdown-it';
const Checkbox = require('markdown-it-checkbox');
const Sanitizer = require('markdown-it-sanitizer');
const md = MarkdownIt({
breaks: true,
html: true,
linkify: true
})
.use(Checkbox, {
divWrap: true,
divClass: 'github-checkbox'
})
.use(Sanitizer, {
imageClass: '',
removeUnbalanced: false,
removeUnknown: true
});
export default md;