fenced_code: Remove unused argument from stash_func calls.

The default stash function (which does nothing, as it's
essentially an identity function) and the function passed
from "markdown.js" do not accept any boolean input.

However, in "fenced_code.js", the function calls provide
a boolean parameter that is not used. This commit removes
that unused boolean argument.

It is required for its migration to TypeScript.
This commit is contained in:
sbansal1999
2023-03-19 19:07:00 +05:30
committed by Tim Abbott
parent a4f05af256
commit 5a758c74e4

View File

@@ -137,7 +137,7 @@ export function process_fenced_code(content) {
done() {
const text = wrap_tex(lines.join("\n"));
const placeholder = stash_func(text, true);
const placeholder = stash_func(text);
output_lines.push("", placeholder, "");
handler_stack.pop();
},
@@ -174,7 +174,7 @@ export function process_fenced_code(content) {
done() {
const text = wrap_code(lines.join("\n"), lang);
// insert safe HTML that is passed through the parsing
const placeholder = stash_func(text, true);
const placeholder = stash_func(text);
output_lines.push("", placeholder, "");
handler_stack.pop();
},