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

Function getLeadParagraph

site/thumbnail.ts:13–14  ·  view source on GitHub ↗
(markdown: string)

Source from the content-addressed store, hash-verified

11 markdown.replace(/^\s*\n+/, '');
12
13const getLeadParagraph = (markdown: string): string =>
14 removeLeadingWhitespace(markdown).split('\n\n')[0] ?? '';
15
16const IMAGE_MARKDOWN =
17 /!\[([^\]]*)\]\(\s*([^) \t\r\n]+)\s*(?:(?:"([^"]*)"|'([^']*)'))?\s*\)/;

Callers 1

getSummaryMarkdownFunction · 0.85

Calls 1

removeLeadingWhitespaceFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…