mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-11 22:02:41 +00:00
Remove duplicate renderer on Marked.parse call
This commit is contained in:
@@ -347,10 +347,7 @@ module.exports = {
|
|||||||
render : (rawBrewText)=>{
|
render : (rawBrewText)=>{
|
||||||
rawBrewText = rawBrewText.replace(/^\\column$/gm, `\n<div class='columnSplit'></div>\n`)
|
rawBrewText = rawBrewText.replace(/^\\column$/gm, `\n<div class='columnSplit'></div>\n`)
|
||||||
.replace(/^(:+)$/gm, (match)=>`${`<div class='blank'></div>`.repeat(match.length)}\n`);
|
.replace(/^(:+)$/gm, (match)=>`${`<div class='blank'></div>`.repeat(match.length)}\n`);
|
||||||
return Marked.parse(
|
return Marked.parse(sanatizeScriptTags(rawBrewText));
|
||||||
sanatizeScriptTags(rawBrewText),
|
|
||||||
{ renderer: renderer }
|
|
||||||
);
|
|
||||||
},
|
},
|
||||||
|
|
||||||
validate : (rawBrewText)=>{
|
validate : (rawBrewText)=>{
|
||||||
|
|||||||
Reference in New Issue
Block a user