This repository has no description
Something went wrong. Try again.
12345678910const MD_IMG = /!\[[^\]]*\]\((\/images\/[^)\s]+)\)/gconst HTML_IMG = /<img[^>]+src=["'](\/images\/[^"']+)["']/g
export function scanImageRefs(source: string): string[] { const set = new Set<string>() for (const m of source.matchAll(MD_IMG)) set.add(m[1]) for (const m of source.matchAll(HTML_IMG)) set.add(m[1]) return [...set]}