@scalar/api-reference
Version:
Generate beautiful API references from OpenAPI documents
13 lines • 493 B
TypeScript
import type { Heading } from '@scalar/types/legacy';
/**
* Extracts all headings from a Markdown string.
*/
export declare function getHeadingsFromMarkdown(input: string): Heading[];
export type HeadingLevels = 1 | 2 | 3 | 4 | 5 | 6;
/**
* Returns the lowest heading level from a list of headings.
*
* If there are h1, h2, h3 … h1 is the lowest heading level.
*/
export declare const getLowestHeadingLevel: (headings: Heading[]) => HeadingLevels;
//# sourceMappingURL=markdown.d.ts.map