1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 | export function Markdown(options: Readonly<Options>): JSX.Element;
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 |
|
18 |
|
19 | export function defaultUrlTransform(value: string): string;
|
20 | export type Element = import('hast').Element;
|
21 | export type ElementContent = import('hast').ElementContent;
|
22 | export type Nodes = import('hast').Nodes;
|
23 | export type Parents = import('hast').Parents;
|
24 | export type Root = import('hast').Root;
|
25 | export type JsxRuntimeComponents = import('hast-util-to-jsx-runtime').Components;
|
26 | export type RemarkRehypeOptions = import('remark-rehype').Options;
|
27 | export type Visitor = import('unist-util-visit').BuildVisitor<Root>;
|
28 | export type PluggableList = import('unified').PluggableList;
|
29 |
|
30 |
|
31 |
|
32 | export type AllowElement = (element: Readonly<Element>, index: number, parent: Readonly<Parents> | undefined) => boolean | null | undefined;
|
33 |
|
34 |
|
35 |
|
36 | export type Components = Partial<JsxRuntimeComponents>;
|
37 |
|
38 |
|
39 |
|
40 | export type Deprecation = {
|
41 | |
42 |
|
43 |
|
44 | from: string;
|
45 | |
46 |
|
47 |
|
48 | id: string;
|
49 | |
50 |
|
51 |
|
52 | to?: keyof Options;
|
53 | };
|
54 |
|
55 |
|
56 |
|
57 | export type Options = {
|
58 | |
59 |
|
60 |
|
61 |
|
62 | allowElement?: AllowElement | null | undefined;
|
63 | |
64 |
|
65 |
|
66 |
|
67 | allowedElements?: ReadonlyArray<string> | null | undefined;
|
68 | |
69 |
|
70 |
|
71 | children?: string | null | undefined;
|
72 | |
73 |
|
74 |
|
75 | className?: string | null | undefined;
|
76 | |
77 |
|
78 |
|
79 | components?: Components | null | undefined;
|
80 | |
81 |
|
82 |
|
83 |
|
84 | disallowedElements?: ReadonlyArray<string> | null | undefined;
|
85 | |
86 |
|
87 |
|
88 | rehypePlugins?: import("unified").PluggableList | null | undefined;
|
89 | |
90 |
|
91 |
|
92 | remarkPlugins?: import("unified").PluggableList | null | undefined;
|
93 | |
94 |
|
95 |
|
96 | remarkRehypeOptions?: Readonly<RemarkRehypeOptions> | null | undefined;
|
97 | |
98 |
|
99 |
|
100 | skipHtml?: boolean | null | undefined;
|
101 | |
102 |
|
103 |
|
104 |
|
105 |
|
106 | unwrapDisallowed?: boolean | null | undefined;
|
107 | |
108 |
|
109 |
|
110 | urlTransform?: UrlTransform | null | undefined;
|
111 | };
|
112 |
|
113 |
|
114 |
|
115 | export type UrlTransform = (url: string, key: string, node: Readonly<Element>) => string | null | undefined;
|