Revert "Resolve #64"

This reverts commit b0a91ceec2.
This commit is contained in:
marihachi 2021-06-26 23:00:19 +09:00
parent b0a91ceec2
commit 1a741a6124
2 changed files with 4 additions and 9 deletions

View file

@ -401,14 +401,13 @@ link
linkLabel
= parts:linkLabelPart+
{
return parts.flat();
return parts;
}
linkLabelPart
= "[" linkLabelPart* "]" linkLabelPart* &("](" url:linkUrl ")")
{ return applyParser(text(), 'inlineParser'); }
/ !"]" n:plain
{ return n; }
= url { return text(); /* text node */ }
/ link { return text(); /* text node */ }
/ !"]" n:inline { return n; }
linkUrl
= url { return text(); }

View file

@ -19,10 +19,6 @@ export function mergeText(nodes: (MfmNode | string)[]): MfmNode[] {
// Store the char.
storedChars.push(node);
}
else if (node.type == 'text') {
// Store the text.
storedChars.push(node.props.text);
}
else {
generateText();
dest.push(node);