Skip to content

Commit fb43c96

Browse files
committed
resolve issue: #1892
1 parent 5ea652c commit fb43c96

File tree

2 files changed

+25
-3
lines changed

2 files changed

+25
-3
lines changed

src/block/node/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ export const convertToNodes: ReturnType<typeof combineNodeParsers> =
5454
NumberListNodeParser,
5555
CodeNodeParser,
5656
CommandLineNodeParser,
57-
FormulaNodeParser,
5857
BlankNodeParser,
5958
DecorationNodeParser,
59+
FormulaNodeParser,
6060
StrongImageNodeParser,
6161
StrongIconNodeParser,
6262
StrongNodeParser,

test/line/formula.test.ts.snapshot

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,30 @@ exports[`formula > Formula followed immediately by a decoration notation with tr
66
"nodes": [
77
{
88
"type": "formula",
9-
"raw": "[$ 1+1=2][. [link] ]",
10-
"formula": "1+1=2][. [link]"
9+
"raw": "[$ 1+1=2]",
10+
"formula": "1+1=2"
11+
},
12+
{
13+
"type": "decoration",
14+
"raw": "[. [link] ]",
15+
"rawDecos": ".",
16+
"decos": [
17+
"."
18+
],
19+
"nodes": [
20+
{
21+
"type": "link",
22+
"raw": "[link]",
23+
"pathType": "relative",
24+
"href": "link",
25+
"content": ""
26+
},
27+
{
28+
"type": "plain",
29+
"raw": " ",
30+
"text": " "
31+
}
32+
]
1133
}
1234
]
1335
}

0 commit comments

Comments
 (0)