|
@@ -4,9 +4,7 @@
|
|
String.prototype.toHTML = function() {
|
|
String.prototype.toHTML = function() {
|
|
return DOMPurify.sanitize(
|
|
return DOMPurify.sanitize(
|
|
marked(this.toString())
|
|
marked(this.toString())
|
|
- .replace(/<code>/g, '<pre class="prettyprint">')
|
|
|
|
- .replace(/<code class="/g, '<pre class="prettyprint ')
|
|
|
|
- .replace(/<\/code>/g, '</pre>')
|
|
|
|
|
|
+ .replace(/<pre>/g, '<pre class="prettyprint">')
|
|
);
|
|
);
|
|
}
|
|
}
|
|
|
|
|