Skip to content

Commit 28716ed

Browse files
authored
Remove sanitization (#295)
* Use a separate sanitization library The marked library deprecated its sanitizer option and recommends to use a separate library to do all the sanitization. * Remove any sanitization We are not rendering in a browser, so it's not necessary to do that.
1 parent 39fb191 commit 28716ed

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/parser.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,7 @@ exports.parse = (markdown) => {
8585
};
8686

8787
marked(markdown, {
88-
renderer: r,
89-
sanitize: true
88+
renderer: r
9089
});
9190

9291
page.examples = page.examples.filter((example) => {

0 commit comments

Comments
 (0)