Revision 2212
Added by Jean-Philippe Lang over 16 years ago
redcloth3.rb | ||
---|---|---|
791 | 791 |
\s? |
792 | 792 |
(?:\(([^)]+?)\)(?="))? # $title |
793 | 793 |
": |
794 |
([\w\/]\S+?) # $url |
|
794 |
( # $url |
|
795 |
(\/|https?:\/\/|s?ftps?:\/\/|www\.) |
|
796 |
[\w\/]\S+? |
|
797 |
) |
|
795 | 798 |
(\/)? # $slash |
796 | 799 |
([^\w\=\/;\(\)]*?) # $post |
797 | 800 |
(?=<|\s|$) |
... | ... | |
799 | 802 |
#" |
800 | 803 |
def inline_textile_link( text ) |
801 | 804 |
text.gsub!( LINK_RE ) do |m| |
802 |
pre,atts,text,title,url,slash,post = $~[1..7]
|
|
805 |
pre,atts,text,title,url,proto,slash,post = $~[1..8]
|
|
803 | 806 |
|
804 | 807 |
url, url_title = check_refs( url ) |
805 | 808 |
title ||= url_title |
Also available in: Unified diff
Stricter textile links parsing (#2417).