mirror of
https://activitypub.software/TransFem-org/sfm-js
synced 2024-11-25 07:25:13 +00:00
Parses the url in the link node as text node.
This commit is contained in:
parent
5ab1b26171
commit
7af351f965
1 changed files with 5 additions and 4 deletions
|
@ -333,7 +333,7 @@ urlBracketPair
|
|||
// inline: link
|
||||
|
||||
link
|
||||
= silent:"?"? "[" label:linkLabel "](" url:linkUrl ")"
|
||||
= silent:"?"? "[" label:linkLabelPart+ "](" url:linkUrl ")"
|
||||
{
|
||||
return createNode('link', {
|
||||
silent: (silent != null),
|
||||
|
@ -341,8 +341,9 @@ link
|
|||
}, mergeText(label));
|
||||
}
|
||||
|
||||
linkLabel
|
||||
= (!"]" n:inline { return n; })+
|
||||
linkLabelPart
|
||||
= url { return text(); /* text node */ }
|
||||
/ !"]" n:inline { return n; }
|
||||
|
||||
linkUrl
|
||||
= url { return text(); }
|
||||
|
@ -382,7 +383,7 @@ fnArg
|
|||
// inline: text
|
||||
|
||||
text
|
||||
= .
|
||||
= . /* text node */
|
||||
|
||||
//
|
||||
// General
|
||||
|
|
Loading…
Reference in a new issue