import { remove_math, replace_math } from "./mathjax-utils";
import { is_array } from "./misc";
export function apply_without_math(string, v) {
let math;
if (!is_array(v)) {
v = [v];
}
[string, math] = remove_math(string);
for (let f of v) {
string = f(string);
}
return replace_math(string, math);
}