Skip to content

Commit 90545e4

Browse files
committed
fix logic
1 parent 6eafc22 commit 90545e4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/block/node/creator.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ export const createNodeParser: NodeParserCreator<Node> = (
3131
if (match === null) continue;
3232

3333
const left = text.substring(0, match.index);
34-
const right = text.substring(match.index + (match[0]?.length ?? 0));
34+
const right = text.substring(match.index + match[0].length);
3535

36-
const node = nodeCreator(match[0] ?? "", opts);
36+
const node = nodeCreator(match[0], opts);
3737
return [
3838
...convertToNodes(left, opts),
3939
...node,

0 commit comments

Comments
 (0)