[F] Markdown: Fix add()

This commit is contained in:
Hykilpikonna
2021-12-25 00:52:52 -05:00
parent b4c3189604
commit 7bd166717d
+5 -1
View File
@@ -60,7 +60,7 @@ export function parseExtensions(raw: string): string
*/ */
function add(s: string) function add(s: string)
{ {
lines[i].replace(re.command, s) lines[i] = lines[i].replace(re.command, s)
} }
// Run all commands in markdown // Run all commands in markdown
@@ -78,10 +78,14 @@ export function parseExtensions(raw: string): string
// Run cmd // Run cmd
console.log(`Running command`, cmd) console.log(`Running command`, cmd)
eval(cmd) eval(cmd)
// Remove cmd
lines[i] = lines[i].replace(re.command, '')
} }
i++; i++;
} }
console.log(lines.join('\n'))
return lines.join('\n') return lines.join('\n')
} }