Parses bare URLs in plain text into links (auto-linking).
Wikidot converts bare URLs like http://example.com/page into <a href="URL">URL</a> without any bracket syntax. A * prefix (*http://...) opens the link in a new tab.
http://example.com/page
<a href="URL">URL</a>
*
*http://...
Mirrors Text_Wiki's Url rule (Parse/Default/Url.php):
http://
https://
ftp://
gopher://
news://
mms://
mailto:
(^|[^A-Za-z])
%/?=&~_
.
,
)
Produces a "link" AST element with type: "direct".
"link"
type: "direct"
Parses bare URLs in plain text into links (auto-linking).
Wikidot converts bare URLs like
http://example.com/pageinto<a href="URL">URL</a>without any bracket syntax. A*prefix (*http://...) opens the link in a new tab.Mirrors Text_Wiki's Url rule (Parse/Default/Url.php):
http://,https://,ftp://,gopher://,news://,mms://, andmailto:(^|[^A-Za-z])in the original regex)%/?=&~_, so trailing punctuation (.,,,)etc.) stays as textProduces a
"link"AST element withtype: "direct".