From e5c4b18ccc43cbeb463c9f26c931ece277637e88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcus=20Bl=C3=A4ttermann?= Date: Sun, 27 Nov 2022 01:37:42 +0100 Subject: [PATCH] Remove unused code --- website/plugins/remarkCodeBlocks.mjs | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/website/plugins/remarkCodeBlocks.mjs b/website/plugins/remarkCodeBlocks.mjs index 0d327e2a9..3e785a42e 100644 --- a/website/plugins/remarkCodeBlocks.mjs +++ b/website/plugins/remarkCodeBlocks.mjs @@ -45,21 +45,6 @@ function remarkCodeBlocks(userOptions = {}) { // GitHub URL attrs.github = 'true' } - // If it's a bash code block and single line, check for prompts - if (lang === 'bash') { - const [trueFirstLine, ...trueLines] = node.value.split('\n') - for (let prompt of options.prompts) { - if (trueFirstLine.startsWith(prompt)) { - const content = [ - trueFirstLine.slice(prompt.length).trim(), - ...trueLines, - ] - attrs.prompt = prompt - node.value = content.join('\n') - break - } - } - } const data = node.data || (node.data = {}) const hProps = data.hProperties || (data.hProperties = {})