Some checks failed
No response / noResponse (push) Has been cancelled
CI / Continuous releases (push) Has been cancelled
CI / test-dev (macos-latest) (push) Has been cancelled
CI / test-dev (ubuntu-latest) (push) Has been cancelled
CI / test-dev (windows-latest) (push) Has been cancelled
Maintenance / main (push) Has been cancelled
Scorecards supply-chain security / Scorecards analysis (push) Has been cancelled
CodeQL / Analyze (push) Has been cancelled
39 lines
898 B
TypeScript
39 lines
898 B
TypeScript
interface TableOfContentsEntry {
|
|
children: TableOfContentsEntry[];
|
|
hash: string;
|
|
level: number;
|
|
text: string;
|
|
}
|
|
|
|
export function createRender(context: {
|
|
headingHashes?: Record<string, string>;
|
|
toc?: TableOfContentsEntry[];
|
|
userLanguage?: string;
|
|
ignoreLanguagePages?: (path: string) => boolean;
|
|
options: object;
|
|
}): (markdown: string) => string;
|
|
|
|
export interface MarkdownHeaders {
|
|
packageName?: string;
|
|
productId: string;
|
|
githubLabel?: string;
|
|
waiAria?: string;
|
|
materialDesign?: string;
|
|
components: string[];
|
|
hooks?: string[];
|
|
slug?: string;
|
|
title?: string;
|
|
description?: string;
|
|
image?: string;
|
|
tags?: string[];
|
|
authors?: string[];
|
|
date?: string;
|
|
githubSource?: string;
|
|
}
|
|
|
|
export function getHeaders(markdown: string): MarkdownHeaders;
|
|
|
|
export function getTitle(markdown: string): string;
|
|
|
|
export function renderMarkdown(markdown: string): string;
|