@discoveryjs/discovery
Version:
Frontend framework for rapid data (JSON) analysis, shareable serverless reports and dashboards
26 lines (25 loc) • 958 B
TypeScript
import type { ViewModel } from '../../main';
import { Renderer, type Tokens, type MarkedOptions } from 'marked';
export declare class CustomMarkedRenderer extends Renderer {
options: MarkedOptions & {
discoveryjs: {
host: ViewModel;
useAnchors: boolean;
codes: Array<{
syntax: string | undefined;
source: string;
}>;
};
};
heading({ tokens, depth, text }: Tokens.Heading): string;
blockquote({ tokens }: Tokens.Blockquote): string;
code({ text: source, lang: syntax }: Tokens.Code): string;
link({ tokens, href, title }: Tokens.Link): string;
checkbox({ checked }: {
checked: boolean;
}): string;
list({ items, ordered, start }: Tokens.List): string;
listitem(token: Tokens.ListItem): string;
table({ header, rows }: Tokens.Table): string;
tablecell({ tokens, header, align }: Tokens.TableCell): string;
}