mirror of
https://github.com/zulip/zulip.git
synced 2025-11-15 11:22:04 +00:00
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:
@@ -137,7 +137,7 @@ export function process_fenced_code(content) {
|
|||||||
|
|
||||||
done() {
|
done() {
|
||||||
const text = wrap_tex(lines.join("\n"));
|
const text = wrap_tex(lines.join("\n"));
|
||||||
const placeholder = stash_func(text, true);
|
const placeholder = stash_func(text);
|
||||||
output_lines.push("", placeholder, "");
|
output_lines.push("", placeholder, "");
|
||||||
handler_stack.pop();
|
handler_stack.pop();
|
||||||
},
|
},
|
||||||
@@ -174,7 +174,7 @@ export function process_fenced_code(content) {
|
|||||||
done() {
|
done() {
|
||||||
const text = wrap_code(lines.join("\n"), lang);
|
const text = wrap_code(lines.join("\n"), lang);
|
||||||
// insert safe HTML that is passed through the parsing
|
// insert safe HTML that is passed through the parsing
|
||||||
const placeholder = stash_func(text, true);
|
const placeholder = stash_func(text);
|
||||||
output_lines.push("", placeholder, "");
|
output_lines.push("", placeholder, "");
|
||||||
handler_stack.pop();
|
handler_stack.pop();
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user