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

Function createHeading

scripts/docs/src/generate-cli-docs.ts:65–78  ·  view source on GitHub ↗
(
  depth: number,
  content: string | PhrasingContent[],
)

Source from the content-addressed store, hash-verified

63}
64
65function createHeading(
66 depth: number,
67 content: string | PhrasingContent[],
68): Heading {
69 const children = Array.isArray(content)
70 ? content
71 : [{ type: "text", value: content }];
72
73 return {
74 type: "heading",
75 depth: Math.min(Math.max(depth, 1), 6),
76 children,
77 };
78}
79
80function createInlineCode(value: string): PhrasingContent {
81 return { type: "inlineCode", value };

Callers 3

buildOptionEntriesFunction · 0.85
buildCommandSectionFunction · 0.85
buildIndexDocFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected