mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-11-23 23:06:54 +00:00
Remove duplicate renderer on Marked.parse call
This commit is contained in:
1 parent
402811fbec
commit
c41b06eee1
1 file changed
+1
-4
@@ -347,10 +347,7 @@ module.exports = {
|
||||
render : (rawBrewText)=>{
|
||||
rawBrewText = rawBrewText.replace(/^\\column$/gm, `\n<div class='columnSplit'></div>\n`)
|
||||
.replace(/^(:+)$/gm, (match)=>`${`<div class='blank'></div>`.repeat(match.length)}\n`);
|
||||
return Marked.parse(
|
||||
sanatizeScriptTags(rawBrewText),
|
||||
{ renderer: renderer }
|
||||
);
|
||||
return Marked.parse(sanatizeScriptTags(rawBrewText));
|
||||
},
|
||||
|
||||
validate : (rawBrewText)=>{
|
||||
|
||||
Reference in new issue
Block a user