rpeg-markdown 1.1.1 → 1.4.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.
- data/Rakefile +1 -1
- data/ext/markdown_output.c +2 -2
- data/ext/markdown_parser.c +977 -1071
- data/ext/utility_functions.c +7 -1
- metadata +2 -2
data/ext/utility_functions.c
CHANGED
@@ -126,11 +126,15 @@ static bool extension(int ext) {
|
|
126
126
|
/* match_inlines - returns true if inline lists match (case-insensitive...) */
|
127
127
|
static bool match_inlines(element *l1, element *l2) {
|
128
128
|
while (l1 != NULL && l2 != NULL) {
|
129
|
-
|
129
|
+
if (l1->key != l2->key)
|
130
130
|
return false;
|
131
131
|
switch (l1->key) {
|
132
132
|
case SPACE:
|
133
133
|
case LINEBREAK:
|
134
|
+
case ELLIPSIS:
|
135
|
+
case EMDASH:
|
136
|
+
case ENDASH:
|
137
|
+
case APOSTROPHE:
|
134
138
|
break;
|
135
139
|
case CODE:
|
136
140
|
case STR:
|
@@ -142,6 +146,8 @@ static bool match_inlines(element *l1, element *l2) {
|
|
142
146
|
case EMPH:
|
143
147
|
case STRONG:
|
144
148
|
case LIST:
|
149
|
+
case SINGLEQUOTED:
|
150
|
+
case DOUBLEQUOTED:
|
145
151
|
if (match_inlines(l1->children, l2->children))
|
146
152
|
break;
|
147
153
|
else
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rpeg-markdown
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.4.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Tomayko
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2008-
|
12
|
+
date: 2008-11-24 00:00:00 -08:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|