(text: string)
| 41 | } |
| 42 | |
| 43 | function plainMarkdown(text: string): string { |
| 44 | return text.replace(/!\[[^\]]*\]\([^)]*\)/g, '').replace(/\[([^\]]+)\]\([^)]*\)/g, '$1').replace(/[*_`]/g, '').replace(/<[^>]*>/g, '').trim(); |
| 45 | } |
| 46 | |
| 47 | /** Quote only repository-authored prose, never infer a responsibility from an identifier. */ |
| 48 | export function sourceQuote(path: string, source: string, start = 1): SourceQuote | undefined { |