parkdown 1.4.29 → 1.4.30
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/Rakefile +1 -1
- data/ext/markdown_parser.c +5768 -4728
- data/ext/markdown_peg.h +3 -3
- data/ext/utility_functions.c +3 -3
- data/ext/utility_functions.h +1 -1
- metadata +3 -3
data/ext/markdown_peg.h
CHANGED
@@ -9,10 +9,10 @@
|
|
9
9
|
struct Link {
|
10
10
|
struct Element *label;
|
11
11
|
char *url;
|
12
|
-
char *title;
|
12
|
+
char *title;
|
13
13
|
};
|
14
14
|
|
15
|
-
typedef struct Link
|
15
|
+
typedef struct Link md_link;
|
16
16
|
|
17
17
|
/* Information (label and two sources) for a media link. */
|
18
18
|
struct Media {
|
@@ -30,7 +30,7 @@ union Contents {
|
|
30
30
|
struct Media *media;
|
31
31
|
};
|
32
32
|
|
33
|
-
/* Types of semantic values returned by parsers. */
|
33
|
+
/* Types of semantic values returned by parsers. */
|
34
34
|
enum keys { LIST, /* A generic list of values. For ordered and bullet lists, see below. */
|
35
35
|
RAW, /* Raw markdown to be processed further */
|
36
36
|
SPACE,
|
data/ext/utility_functions.c
CHANGED
@@ -116,7 +116,7 @@ element * mk_list(int key, element *lst) {
|
|
116
116
|
element * mk_link(element *label, char *url, char *title) {
|
117
117
|
element *result;
|
118
118
|
result = mk_element(LINK);
|
119
|
-
result->contents.link = malloc(sizeof(
|
119
|
+
result->contents.link = malloc(sizeof(md_link));
|
120
120
|
result->contents.link->label = label;
|
121
121
|
result->contents.link->url = strdup(url);
|
122
122
|
result->contents.link->title = strdup(title);
|
@@ -184,9 +184,9 @@ bool match_inlines(element *l1, element *l2) {
|
|
184
184
|
|
185
185
|
/* find_reference - return true if link found in references matching label.
|
186
186
|
* 'link' is modified with the matching url and title. */
|
187
|
-
bool find_reference(
|
187
|
+
bool find_reference(md_link *result, element *label) {
|
188
188
|
element *cur = references; /* pointer to walk up list of references */
|
189
|
-
|
189
|
+
md_link *curitem;
|
190
190
|
while (cur != NULL) {
|
191
191
|
curitem = cur->contents.link;
|
192
192
|
if (match_inlines(label, curitem->label)) {
|
data/ext/utility_functions.h
CHANGED
@@ -67,7 +67,7 @@ bool match_inlines(element *l1, element *l2);
|
|
67
67
|
|
68
68
|
/* find_reference - return true if link found in references matching label.
|
69
69
|
* 'link' is modified with the matching url and title. */
|
70
|
-
bool find_reference(
|
70
|
+
bool find_reference(md_link *result, element *label);
|
71
71
|
|
72
72
|
/* find_note - return true if note found in notes matching label.
|
73
73
|
if found, 'result' is set to point to matched note. */
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: parkdown
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.
|
4
|
+
version: 1.4.30
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Tomayko
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2025-03-
|
13
|
+
date: 2025-03-14 00:00:00.000000000 Z
|
14
14
|
dependencies: []
|
15
15
|
description: ''
|
16
16
|
email: spam@elephly.net
|
@@ -139,7 +139,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
139
139
|
requirements:
|
140
140
|
- - ">="
|
141
141
|
- !ruby/object:Gem::Version
|
142
|
-
version:
|
142
|
+
version: 3.0.0
|
143
143
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
144
144
|
requirements:
|
145
145
|
- - ">="
|