parkdown 1.4.29 → 1.4.31
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 +14 -7
- data/ext/extconf.rb +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 +4 -7
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,16 +1,15 @@
|
|
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.31
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Tomayko
|
8
8
|
- Rekado
|
9
9
|
- Pistos
|
10
|
-
autorequire:
|
11
10
|
bindir: bin
|
12
11
|
cert_chain: []
|
13
|
-
date: 2025-03-
|
12
|
+
date: 2025-03-15 00:00:00.000000000 Z
|
14
13
|
dependencies: []
|
15
14
|
description: ''
|
16
15
|
email: spam@elephly.net
|
@@ -131,7 +130,6 @@ homepage: https://github.com/Libertree/parkdown
|
|
131
130
|
licenses:
|
132
131
|
- GPL-2.0-or-later
|
133
132
|
metadata: {}
|
134
|
-
post_install_message:
|
135
133
|
rdoc_options: []
|
136
134
|
require_paths:
|
137
135
|
- lib
|
@@ -139,15 +137,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
139
137
|
requirements:
|
140
138
|
- - ">="
|
141
139
|
- !ruby/object:Gem::Version
|
142
|
-
version:
|
140
|
+
version: 3.0.0
|
143
141
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
144
142
|
requirements:
|
145
143
|
- - ">="
|
146
144
|
- !ruby/object:Gem::Version
|
147
145
|
version: '0'
|
148
146
|
requirements: []
|
149
|
-
rubygems_version: 3.
|
150
|
-
signing_key:
|
147
|
+
rubygems_version: 3.6.2
|
151
148
|
specification_version: 4
|
152
149
|
summary: Fast Markdown implementation
|
153
150
|
test_files:
|