MCPcopy
hub / github.com/agent0ai/agent-zero / footnoteId

Function footnoteId

plugins/_editor/webui/editor-preview.js:180–185  ·  view source on GitHub ↗
(id = "")

Source from the content-addressed store, hash-verified

178}
179
180function footnoteId(id = "") {
181 return String(id || "")
182 .toLowerCase()
183 .replace(/[^a-z0-9_-]+/g, "-")
184 .replace(/^-+|-+$/g, "") || "note";
185}
186
187function parentPath(path = "") {
188 const normalized = String(path || "").split(/[?#]/, 1)[0].replace(/\/+$/, "");

Callers 1

prepareFootnotesFunction · 0.85

Calls 1

replaceMethod · 0.80

Tested by

no test coverage detected