@@ 50-55 (lines=6) @@ | ||
47 | */ |
|
48 | protected function parseUrl($markdown) |
|
49 | { |
|
50 | if (!in_array('parseLink', $this->context) && preg_match($this->_urlRegexp, $markdown, $matches)) { |
|
51 | return [ |
|
52 | ['autoUrl', $matches[0]], |
|
53 | strlen($matches[0]) |
|
54 | ]; |
|
55 | } |
|
56 | return [['text', substr($markdown, 0, 6)], 6]; |
|
57 | } |
|
58 | ||
@@ 74-79 (lines=6) @@ | ||
71 | protected function parseEscapedUrl($markdown) |
|
72 | { |
|
73 | $text = substr($markdown, 1); |
|
74 | if (preg_match($this->_urlRegexp, $text, $matches)) { |
|
75 | return [ |
|
76 | ['text', $matches[0]], |
|
77 | strlen($matches[0]) + 1 |
|
78 | ]; |
|
79 | } |
|
80 | return [['text', substr($markdown, 0, 4)], 4]; |
|
81 | } |
|
82 |