MCPcopy Create free account
hub / github.com/KaTeX/KaTeX / updatePermalink

Function updatePermalink

static/main.js:326–330  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

324 input.addEventListener("input", reprocess, options);
325
326 function updatePermalink() {
327 const data = Object.assign({}, options, {code: input.value});
328 const encodedData = encodeURIComponent(JSON.stringify(data));
329 window.history.replaceState({}, "", `?data=${encodedData}`);
330 }
331
332 const urlParams = new URLSearchParams(window.location.search);
333 const data = urlParams.get("data");

Callers 1

reprocessFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected