rdiscount 2.2.7.1 → 2.2.7.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ext/VERSION +1 -1
- data/ext/generate.c +21 -18
- data/ext/gethopt.c +2 -1
- data/ext/ruby-config.h +10 -0
- data/ext/toc.c +1 -5
- data/lib/rdiscount.rb +1 -1
- data/rdiscount.gemspec +4 -3
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7cf15c9535d4e5016d31ce5259672abac80df8a2e5669adc6e0cb91e8b1fc7d5
|
4
|
+
data.tar.gz: 49d680d21cadadce16d98786249999d0546ff513f043feebbaf4b86aac8a77f5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 90c7ade6956dc384ba04e2fb212caab6cc3f8b8ef6ee4126114a8bfd668f6dececcabd206c048e31a58d8e1d06d337bd5ba77f94fb4d0e43f8739674fad73acd
|
7
|
+
data.tar.gz: 8e4083908e90fb651cae41fa04c5e059593fe80571cb495e39c500b5baf67f788260c85ba8b778fc5e78800c68e94a4c21a832cb424c7e054ece2365e4b92156
|
data/ext/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.2.
|
1
|
+
2.2.7d
|
data/ext/generate.c
CHANGED
@@ -180,17 +180,13 @@ Qprintf(MMIOT *f, char *fmt, ...)
|
|
180
180
|
}
|
181
181
|
|
182
182
|
|
183
|
-
static int Qchar_mkd_sta_function_t(const int n, const void* iot) {
|
184
|
-
Qchar(n, iot);
|
185
|
-
}
|
186
|
-
|
187
183
|
/* Qanchor() prints out a suitable-for-id-tag version of a string
|
188
184
|
*/
|
189
185
|
static void
|
190
186
|
Qanchor(struct line *p, MMIOT *f)
|
191
187
|
{
|
192
188
|
mkd_string_to_anchor(T(p->text), S(p->text),
|
193
|
-
|
189
|
+
(mkd_sta_function_t)Qchar, f, 1, f);
|
194
190
|
}
|
195
191
|
|
196
192
|
|
@@ -761,22 +757,29 @@ linkylinky(int image, MMIOT *f)
|
|
761
757
|
else {
|
762
758
|
int goodlink, implicit_mark = mmiottell(f);
|
763
759
|
|
764
|
-
if (
|
765
|
-
|
766
|
-
|
767
|
-
|
768
|
-
|
769
|
-
|
760
|
+
if ( is_flag_set(f->flags, MKD_EXTRA_FOOTNOTE)
|
761
|
+
&& !is_flag_set(f->flags, MKD_STRICT)
|
762
|
+
&& (!image)
|
763
|
+
&& S(name)
|
764
|
+
&& T(name)[0] == '^' ) {
|
765
|
+
extra_footnote = 1;
|
766
|
+
goodlink = 1;
|
770
767
|
}
|
771
768
|
else {
|
772
|
-
|
773
|
-
|
774
|
-
*/
|
775
|
-
mmiotseek(f, implicit_mark);
|
776
|
-
goodlink = !is_flag_set(f->flags, MKD_1_COMPAT);
|
769
|
+
if ( isspace(peek(f,1)) )
|
770
|
+
pull(f);
|
777
771
|
|
778
|
-
if (
|
779
|
-
|
772
|
+
if ( peek(f,1) == '[' ) {
|
773
|
+
pull(f); /* consume leading '[' */
|
774
|
+
goodlink = linkylabel(f, &key.tag);
|
775
|
+
}
|
776
|
+
else {
|
777
|
+
/* new markdown implicit name syntax doesn't
|
778
|
+
* require a second []
|
779
|
+
*/
|
780
|
+
mmiotseek(f, implicit_mark);
|
781
|
+
goodlink = !is_flag_set(f->flags, MKD_1_COMPAT);
|
782
|
+
}
|
780
783
|
}
|
781
784
|
|
782
785
|
if ( goodlink ) {
|
data/ext/gethopt.c
CHANGED
data/ext/ruby-config.h
ADDED
data/ext/toc.c
CHANGED
@@ -15,10 +15,6 @@
|
|
15
15
|
#include "markdown.h"
|
16
16
|
#include "amalloc.h"
|
17
17
|
|
18
|
-
static int Csputc_mkd_sta_function_t(const int n, const void* iot) {
|
19
|
-
Csputc(n, iot);
|
20
|
-
}
|
21
|
-
|
22
18
|
/* write an header index
|
23
19
|
*/
|
24
20
|
int
|
@@ -68,7 +64,7 @@ mkd_toc(Document *p, char **doc)
|
|
68
64
|
Csprintf(&res, "%*s<li><a href=\"#", srcp->hnumber, "");
|
69
65
|
mkd_string_to_anchor(T(srcp->text->text),
|
70
66
|
S(srcp->text->text),
|
71
|
-
|
67
|
+
(mkd_sta_function_t)Csputc,
|
72
68
|
&res,1,p->ctx);
|
73
69
|
Csprintf(&res, "\">");
|
74
70
|
Csreparse(&res, T(srcp->text->text),
|
data/lib/rdiscount.rb
CHANGED
data/rdiscount.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'rdiscount'
|
3
|
-
s.version = '2.2.7.
|
3
|
+
s.version = '2.2.7.2'
|
4
4
|
s.summary = "Fast Implementation of Gruber's Markdown in C"
|
5
5
|
s.email = 'david@dafoster.net'
|
6
6
|
s.homepage = 'http://dafoster.net/projects/rdiscount/'
|
@@ -14,12 +14,13 @@ Gem::Specification.new do |s|
|
|
14
14
|
Rakefile
|
15
15
|
bin/rdiscount
|
16
16
|
discount
|
17
|
+
ext/Csio.c
|
18
|
+
ext/VERSION
|
17
19
|
ext/amalloc.c
|
18
20
|
ext/amalloc.h
|
19
21
|
ext/basename.c
|
20
22
|
ext/blocktags
|
21
23
|
ext/config.h
|
22
|
-
ext/Csio.c
|
23
24
|
ext/css.c
|
24
25
|
ext/cstring.h
|
25
26
|
ext/docheader.c
|
@@ -43,11 +44,11 @@ Gem::Specification.new do |s|
|
|
43
44
|
ext/pgm_options.h
|
44
45
|
ext/rdiscount.c
|
45
46
|
ext/resource.c
|
47
|
+
ext/ruby-config.h
|
46
48
|
ext/setup.c
|
47
49
|
ext/tags.c
|
48
50
|
ext/tags.h
|
49
51
|
ext/toc.c
|
50
|
-
ext/VERSION
|
51
52
|
ext/version.c
|
52
53
|
ext/xml.c
|
53
54
|
ext/xmlpage.c
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rdiscount
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.7.
|
4
|
+
version: 2.2.7.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Tomayko
|
@@ -12,7 +12,7 @@ authors:
|
|
12
12
|
autorequire:
|
13
13
|
bindir: bin
|
14
14
|
cert_chain: []
|
15
|
-
date: 2023-
|
15
|
+
date: 2023-12-19 00:00:00.000000000 Z
|
16
16
|
dependencies: []
|
17
17
|
description:
|
18
18
|
email: david@dafoster.net
|
@@ -58,6 +58,7 @@ files:
|
|
58
58
|
- ext/pgm_options.h
|
59
59
|
- ext/rdiscount.c
|
60
60
|
- ext/resource.c
|
61
|
+
- ext/ruby-config.h
|
61
62
|
- ext/setup.c
|
62
63
|
- ext/tags.c
|
63
64
|
- ext/tags.h
|