(markdown: string)
| 25 | }); |
| 26 | |
| 27 | const parseLeadingImage = (markdown: string): Thumbnail | undefined => { |
| 28 | const match = markdown.match(new RegExp(`^${IMAGE_MARKDOWN.source}\\s*$`)); |
| 29 | return match == null ? undefined : getThumbnailFromMatch(match); |
| 30 | }; |
| 31 | |
| 32 | const findFirstImage = (markdown?: string): Thumbnail | undefined => { |
| 33 | const match = markdown?.match(IMAGE_MARKDOWN); |
no test coverage detected
searching dependent graphs…