File tree 1 file changed +23
-3
lines changed
1 file changed +23
-3
lines changed Original file line number Diff line number Diff line change 1
- import type { Literal } from 'mdast'
1
+ import type { Data , Literal } from 'mdast'
2
2
3
3
export { mathFromMarkdown , mathToMarkdown } from './lib/index.js'
4
4
@@ -9,26 +9,46 @@ export type {ToOptions} from './lib/index.js'
9
9
*/
10
10
export interface Math extends Literal {
11
11
/**
12
- * Node type.
12
+ * Node type of math (flow) .
13
13
*/
14
14
type : 'math'
15
15
16
16
/**
17
17
* Custom information relating to the node.
18
18
*/
19
19
meta ?: string | null | undefined
20
+
21
+ /**
22
+ * Data associated with the mdast math (flow).
23
+ */
24
+ data ?: MathData | undefined
20
25
}
21
26
27
+ /**
28
+ * Info associated with mdast math (flow) nodes by the ecosystem.
29
+ */
30
+ export interface MathData extends Data { }
31
+
22
32
/**
23
33
* Math (text).
24
34
*/
25
35
export interface InlineMath extends Literal {
26
36
/**
27
- * Node type.
37
+ * Node type of math (text) .
28
38
*/
29
39
type : 'inlineMath'
40
+
41
+ /**
42
+ * Data associated with the mdast math (text).
43
+ */
44
+ data ?: InlineMathData | undefined
30
45
}
31
46
47
+ /**
48
+ * Info associated with mdast math (text) nodes by the ecosystem.
49
+ */
50
+ export interface InlineMathData extends Data { }
51
+
32
52
// Add custom data tracked to turn markdown into a tree.
33
53
declare module 'mdast-util-from-markdown' {
34
54
interface CompileData {
You can’t perform that action at this time.
0 commit comments