Skip to content

Commit 41c359f

Browse files
author
Martii
committed
Rename json to be more specific and change affected code
* Gotta run now
1 parent 6891f97 commit 41c359f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
File renamed without changes.

libs/markdown.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
var marked = require('marked');
22
var hljs = require('highlight.js');
33
var sanitizeHtml = require('sanitize-html');
4-
var htmlWhitelist = require('./htmlwhitelist.json');
4+
var htmlWhitelistPost = require('./htmlWhitelistPost.json');
55
var renderer = new marked.Renderer();
66

77
// Automatically generate an anchor for each header
@@ -40,5 +40,5 @@ marked.setOptions({
4040
});
4141

4242
exports.renderMd = function (text) {
43-
return marked(sanitizeHtml(text), htmlWhitelist);
43+
return marked(sanitizeHtml(text), htmlWhitelistPost);
4444
};

0 commit comments

Comments
 (0)