github-markdown 0.5.4 → 0.5.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/ext/markdown/autolink.c +5 -2
- data/github-markdown.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6433aeeb45a4d139e4245c135b7b43065095c37b
|
|
4
|
+
data.tar.gz: 62050a7a94c8dd6e6e0516bb3bd61ab31c272f49
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2894fe2ff8e055f248a2c16bbacbc54e73d1c0db547176631c81d284713f23d40fb16c406a1b5bf3a7352624e1304ce06a4c00bf31d2e665b7fe6e2a4b820078
|
|
7
|
+
data.tar.gz: 4f01241c3918cc5d68c091ef5c52bc7da93f306677e7ff4b00c5db1d295d6a70bb7e82f1d1dd1db9a815fb42f8b7719a04d12cf0a5edd65af96a92a17b4f0965
|
data/ext/markdown/autolink.c
CHANGED
|
@@ -204,7 +204,7 @@ sd_autolink__email(
|
|
|
204
204
|
unsigned int flags)
|
|
205
205
|
{
|
|
206
206
|
size_t link_end, rewind;
|
|
207
|
-
int nb = 0, np = 0;
|
|
207
|
+
int nb = 0, np = 0, ns = 0;
|
|
208
208
|
|
|
209
209
|
for (rewind = 0; rewind < max_rewind; ++rewind) {
|
|
210
210
|
uint8_t c = data[-rewind - 1];
|
|
@@ -215,10 +215,13 @@ sd_autolink__email(
|
|
|
215
215
|
if (strchr(".+-_", c) != NULL)
|
|
216
216
|
continue;
|
|
217
217
|
|
|
218
|
+
if (c == '/')
|
|
219
|
+
ns++;
|
|
220
|
+
|
|
218
221
|
break;
|
|
219
222
|
}
|
|
220
223
|
|
|
221
|
-
if (rewind == 0)
|
|
224
|
+
if (rewind == 0 || ns > 0)
|
|
222
225
|
return 0;
|
|
223
226
|
|
|
224
227
|
for (link_end = 0; link_end < size; ++link_end) {
|
data/github-markdown.gemspec
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# encoding: utf-8
|
|
2
2
|
Gem::Specification.new do |s|
|
|
3
3
|
s.name = 'github-markdown'
|
|
4
|
-
s.version = '0.5.
|
|
4
|
+
s.version = '0.5.5'
|
|
5
5
|
s.summary = 'The Markdown parser for GitHub.com'
|
|
6
6
|
s.description = 'Self-contained Markdown parser for GitHub, with all our custom extensions'
|
|
7
7
|
s.date = '2013-10-01'
|