(note: ParsedJsDocPart[])
| 454 | * a ⚠️ note is labeled as a warning, and other markers are dropped. |
| 455 | */ |
| 456 | const unmarkNote = (note: ParsedJsDocPart[]) => { |
| 457 | const start = note[0] |
| 458 | if (start?.kind !== "noteStart") return |
| 459 | const marker = noteMarkerRegex.exec(start.value)?.[0] ?? "" |
| 460 | start.value = start.value.slice(marker.length) |
| 461 | if (marker.startsWith("⚠️")) start.warning = true |
| 462 | } |
| 463 | |
| 464 | /** |
| 465 | * A reference to a name documented on the same page stays an in-page anchor. |