We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6eafc22 commit 90545e4Copy full SHA for 90545e4
src/block/node/creator.ts
@@ -31,9 +31,9 @@ export const createNodeParser: NodeParserCreator<Node> = (
31
if (match === null) continue;
32
33
const left = text.substring(0, match.index);
34
- const right = text.substring(match.index + (match[0]?.length ?? 0));
+ const right = text.substring(match.index + match[0].length);
35
36
- const node = nodeCreator(match[0] ?? "", opts);
+ const node = nodeCreator(match[0], opts);
37
return [
38
...convertToNodes(left, opts),
39
...node,
0 commit comments