From 9ad1d1f1963daef38fcda37397034179d25c4cb2 Mon Sep 17 00:00:00 2001 From: Trevor Buckner Date: Tue, 20 Feb 2024 17:05:26 -0500 Subject: [PATCH] remove unused 'parseVarse' variable --- shared/naturalcrit/markdown.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/shared/naturalcrit/markdown.js b/shared/naturalcrit/markdown.js index a99660046..af0feec1b 100644 --- a/shared/naturalcrit/markdown.js +++ b/shared/naturalcrit/markdown.js @@ -650,7 +650,6 @@ const processStyleTags = (string)=>{ const globalVarsList = {}; let varsQueue = []; let globalPageNumber = 0; -let parseVars = true; module.exports = { marked : Marked, @@ -659,8 +658,6 @@ module.exports = { varsQueue = []; //Could move into MarkedVariables() globalPageNumber = pageNumber; - parseVars = true; - rawBrewText = rawBrewText.replace(/^\\column$/gm, `\n
\n`) .replace(/^(:+)$/gm, (match)=>`${`
`.repeat(match.length)}\n`); const opts = Marked.defaults; @@ -670,8 +667,6 @@ module.exports = { Marked.walkTokens(tokens, opts.walkTokens); - parseVars = false; - const html = Marked.parser(tokens, opts); return opts.hooks.postprocess(html); },