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

update alt url syntax

parent c2c62950
No related branches found
No related tags found
No related merge requests found
......@@ -354,7 +354,7 @@ hashtagChar
// inline: URL
url
= "<" url:urlFormat ">"
= "<" url:altUrlFormat ">"
{
return N_URL(url);
}
......@@ -364,14 +364,11 @@ url
}
urlFormat
= "http" "s"? "://" urlContent
= "http" "s"? "://" urlContentPart+
{
return text();
}
urlContent
= urlContentPart+
urlContentPart
= urlBracketPair
/ [.,] &urlContentPart // last char is neither "." nor ",".
......@@ -381,6 +378,12 @@ urlBracketPair
= "(" urlContentPart* ")"
/ "[" urlContentPart* "]"
altUrlFormat
= "http" "s"? "://" (!">" CHAR)+
{
return text();
}
// inline: link
link
......
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