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

Function removeLeadingWhitespace

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

Source from the content-addressed store, hash-verified

8const THUMBNAIL = 'thumbnail';
9
10const removeLeadingWhitespace = (markdown: string): string =>
11 markdown.replace(/^\s*\n+/, '');
12
13const getLeadParagraph = (markdown: string): string =>
14 removeLeadingWhitespace(markdown).split('\n\n')[0] ?? '';

Callers 2

getLeadParagraphFunction · 0.85
splitLeadingImageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…