MCPcopy Index your code
hub / github.com/lingodotdev/lingo.dev / formatMarkdown

Function formatMarkdown

scripts/docs/src/utils.ts:129–136  ·  view source on GitHub ↗
(markdown: string)

Source from the content-addressed store, hash-verified

127}
128
129export async function formatMarkdown(markdown: string): Promise<string> {
130 const repoRoot = getRepoRoot();
131 const prettierConfig = await prettier.resolveConfig(repoRoot);
132 return await prettier.format(markdown, {
133 ...prettierConfig,
134 parser: "markdown",
135 });
136}

Callers 1

mainFunction · 0.90

Calls 1

getRepoRootFunction · 0.85

Tested by

no test coverage detected