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

Function cleanHeadingText

plugins/_editor/webui/editor-preview.js:137–142  ·  view source on GitHub ↗
(text = "")

Source from the content-addressed store, hash-verified

135}
136
137function cleanHeadingText(text = "") {
138 return String(text || "")
139 .replace(/\\([\\`*_[\]{}()#+.!-])/g, "$1")
140 .replace(/[*_`~]/g, "")
141 .trim();
142}
143
144function prepareFootnotes(markdown = "", fullMarkdown = markdown) {
145 const definitions = [];

Callers 1

startPageFunction · 0.85

Calls 1

replaceMethod · 0.80

Tested by

no test coverage detected