fix toString()

This commit is contained in:
marihachi 2021-03-27 00:16:23 +09:00
parent c42fb34c90
commit 73fb26c6ba

View file

@ -83,7 +83,7 @@ function nodeStringify(node: MfmNode): string {
return `${ key }=${ value }`;
}
});
const args = argFields.join(',');
const args = (argFields.length > 0) ? '.' + argFields.join(',') : '';
return `[${ node.props.name }${ args } ${ toString(node.children) }]`;
}
case 'text': {