* Remove fenced (``` ```) and inline (`` ` ``) code so tags/links inside code * are not extracted as real tags/links.
(text: string)
| 126 | * are not extracted as real tags/links. |
| 127 | */ |
| 128 | function stripCode(text: string): string { |
| 129 | return text.replace(/```[\s\S]*?```/g, '').replace(/`[^`\n]*`/g, ''); |
| 130 | } |
| 131 | |
| 132 | /** |
| 133 | * Parse a leading YAML frontmatter block (minimal subset). Returns the document |
no outgoing calls
no test coverage detected