From 487cfba9feae3f96715b7217a5e4c09b4c5255db Mon Sep 17 00:00:00 2001 From: marihachi Date: Mon, 19 Apr 2021 00:49:26 +0900 Subject: [PATCH] API: fix toString --- src/util.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util.ts b/src/util.ts index 9ab35e2..c8a1b0a 100644 --- a/src/util.ts +++ b/src/util.ts @@ -96,7 +96,7 @@ export function stringifyNode(node: MfmNode): string { } }); const args = (argFields.length > 0) ? '.' + argFields.join(',') : ''; - return `[${ node.props.name }${ args } ${ stringifyTree(node.children) }]`; + return `$[${ node.props.name }${ args } ${ stringifyTree(node.children) }]`; } case 'text': { return node.props.text;