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