Skip to content
Snippets Groups Projects
Commit 1a741a61 authored by marihachi's avatar marihachi
Browse files

Revert "Resolve #64"

This reverts commit b0a91cee.
parent b0a91cee
No related branches found
No related tags found
No related merge requests found
......@@ -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(); }
......
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment