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