Skip to content

Commit bf95d07

Browse files
committed
Fix automatic sanitize removing html tags
1 parent 1297b8c commit bf95d07

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

dist/bundle.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/index.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,15 @@ class CodeTool {
168168
tags: [ 'pre' ],
169169
};
170170
}
171+
172+
/**
173+
* Automatic sanitize config
174+
*/
175+
static get sanitize() {
176+
return {
177+
code: true // Allow HTML tags
178+
};
179+
}
171180
}
172181

173182
module.exports = CodeTool;

0 commit comments

Comments
 (0)