github-markdown 0.6.0 → 0.6.1
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/markdown.c +7 -4
- 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: d5e4dc875dd8f6fa856a34e659e0e4ae417492c3
|
4
|
+
data.tar.gz: 7c2e9f88182ea92f68f4e47a6fb83f34b877f75e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f09c0ec74920d23a6bcc964edd859e862714298dd3e5dce9975973ff13f34fe598502e9c60514988644f68d036220f078c2ca90a1a26c5175ff45caf4247a38c
|
7
|
+
data.tar.gz: 785aedbbf0988387b7a521b136b26934698764e29313638525d25abad0e1057f6bed43febb2408f298cac4c6c585247fe178850d2205244e7ed2bbbc4314739b
|
data/ext/markdown/markdown.c
CHANGED
@@ -1678,10 +1678,13 @@ parse_listitem(struct buf *ob, struct sd_markdown *rndr, uint8_t *data, size_t s
|
|
1678
1678
|
while (i < 4 && beg + i < end && data[beg + i] == ' ')
|
1679
1679
|
i++;
|
1680
1680
|
|
1681
|
-
|
1682
|
-
|
1683
|
-
|
1684
|
-
|
1681
|
+
/* don't bother calculating, this is probably the first item if == 0 */
|
1682
|
+
if (previous_indent > 0) {
|
1683
|
+
previous_indent_diff = i - previous_indent;
|
1684
|
+
/* allow indentations between 2 and 4 spaces to count as a new list */
|
1685
|
+
if (previous_indent_diff > 1 && previous_indent_diff < 4)
|
1686
|
+
i = 2;
|
1687
|
+
}
|
1685
1688
|
|
1686
1689
|
pre = i;
|
1687
1690
|
previous_indent = pre;
|
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.6.
|
4
|
+
s.version = '0.6.1'
|
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'
|