Files
react-test/packages/markdown/index.d.mts

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

39 lines
898 B
TypeScript
Raw Permalink Normal View History

2025-12-12 14:26:25 +09:00
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;