API: fix toString

This commit is contained in:
marihachi 2021-04-19 00:49:26 +09:00
parent 25b478324d
commit 487cfba9fe

View file

@ -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;