MCPcopy Index your code
hub / github.com/tinyplex/tinybase / findFirstImage

Function findFirstImage

site/thumbnail.ts:32–35  ·  view source on GitHub ↗
(markdown?: string)

Source from the content-addressed store, hash-verified

30};
31
32const findFirstImage = (markdown?: string): Thumbnail | undefined => {
33 const match = markdown?.match(IMAGE_MARKDOWN);
34 return match == null ? undefined : getThumbnailFromMatch(match);
35};
36
37const splitLeadingImage = (
38 markdown: string | undefined,

Callers 1

extractThumbnailMarkdownFunction · 0.85

Calls 1

getThumbnailFromMatchFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…