Skip to content

Commit

Permalink
fenced_code: Remove unused argument from stash_func calls.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
sbansal1999 authored and timabbott committed Apr 25, 2023
1 parent a4f05af commit 5a758c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/shared/src/fenced_code.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
},
Expand Down Expand Up @@ -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();
},
Expand Down

0 comments on commit 5a758c7

Please sign in to comment.