github-markdown 0.6.2 → 0.6.3
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 +8 -7
- 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: cee1e2fb01f05a2821b465f3c7c00471324ee816
|
|
4
|
+
data.tar.gz: 022638f053f01dbaacd5734757c8deefe807ed57
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e158d6c2773134f9d8e57b2fed9a56facc572788b1e302dfe277bdb881fb91ab052eb0f19e35018f719162d691954b9d02a966afe792d4d294c9ac2a823507c9
|
|
7
|
+
data.tar.gz: dfd268126f837092c0d3e49346731441b953710b94b7d376b7869dcdb35933f89f98fad6a656b64cf5506a3dc45213ce91811c9c5e298f0dfa0bffcdc0d3d64e
|
data/ext/markdown/markdown.c
CHANGED
|
@@ -1706,24 +1706,25 @@ parse_listitem(struct buf *ob, struct sd_markdown *rndr, uint8_t *data, size_t s
|
|
|
1706
1706
|
((*flags & MKD_LIST_ORDERED) && has_next_uli) ||
|
|
1707
1707
|
(!(*flags & MKD_LIST_ORDERED) && has_next_oli))){
|
|
1708
1708
|
*flags |= MKD_LI_END;
|
|
1709
|
-
break; /* the following item must have same list type */
|
|
1710
1709
|
}
|
|
1711
1710
|
|
|
1712
1711
|
/* checking for a new item */
|
|
1713
1712
|
if ((has_next_uli && !is_hrule(data + beg + i, end - beg - i)) || has_next_oli) {
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
break;
|
|
1713
|
+
/* the following item must have the same indentation */
|
|
1714
|
+
if (pre == orgpre) {
|
|
1715
|
+
if (in_empty)
|
|
1716
|
+
has_trailing_empty = 1;
|
|
1717
|
+
break;
|
|
1718
|
+
}
|
|
1719
1719
|
|
|
1720
1720
|
if (!sublist)
|
|
1721
1721
|
sublist = work->size;
|
|
1722
1722
|
}
|
|
1723
|
+
|
|
1723
1724
|
/* joining only indented stuff after empty lines;
|
|
1724
1725
|
* note that now we only require 1 space of indentation
|
|
1725
1726
|
* to continue a list */
|
|
1726
|
-
|
|
1727
|
+
if (in_empty && pre == 0) {
|
|
1727
1728
|
*flags |= MKD_LI_END;
|
|
1728
1729
|
break;
|
|
1729
1730
|
}
|
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.3'
|
|
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'
|