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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5849e19e3928819b5f9a20522e207dfeedfb4f0255eadf474e422955e63d262e
4
- data.tar.gz: 280e0da7f264fdf85ae557fb71b260c2716abf6c1487123ab86b3b5907244902
3
+ metadata.gz: 7cf15c9535d4e5016d31ce5259672abac80df8a2e5669adc6e0cb91e8b1fc7d5
4
+ data.tar.gz: 49d680d21cadadce16d98786249999d0546ff513f043feebbaf4b86aac8a77f5
5
5
  SHA512:
6
- metadata.gz: 7c7214d4b3cff6b03ddb0ae4636f82a9d46c67f3cd3e9958abfd4cff6a107cf42149f2d889578b292ec41d8226fbc0532c1c62fe1db277ccbfa276510fd4b50d
7
- data.tar.gz: 90e140816a109a06be1aecb8d2edad72f92b2981eb8e4173ae1ff4c7f931e24029fe473d021976a8b824ea91dc84d8ef53187b3bc01692dccfd6a3c5006b4db4
6
+ metadata.gz: 90c7ade6956dc384ba04e2fb212caab6cc3f8b8ef6ee4126114a8bfd668f6dececcabd206c048e31a58d8e1d06d337bd5ba77f94fb4d0e43f8739674fad73acd
7
+ data.tar.gz: 8e4083908e90fb651cae41fa04c5e059593fe80571cb495e39c500b5baf67f788260c85ba8b778fc5e78800c68e94a4c21a832cb424c7e054ece2365e4b92156
data/ext/VERSION CHANGED
@@ -1 +1 @@
1
- 2.2.7c
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
- Qchar_mkd_sta_function_t, f, 1, f);
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 ( isspace(peek(f,1)) )
765
- pull(f);
766
-
767
- if ( peek(f,1) == '[' ) {
768
- pull(f); /* consume leading '[' */
769
- goodlink = linkylabel(f, &key.tag);
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
- /* new markdown implicit name syntax doesn't
773
- * require a second []
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 ( is_flag_set(f->flags, MKD_EXTRA_FOOTNOTE) && (!image) && S(name) && T(name)[0] == '^' )
779
- extra_footnote = 1;
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
@@ -45,7 +45,8 @@ struct h_context *ctx;
45
45
 
46
46
 
47
47
  int
48
- hopterr(struct h_context *ctx, int val)
48
+ hopterr(ctx,val)
49
+ struct h_context *ctx;
49
50
  {
50
51
  int old = ctx->opterr;
51
52
 
data/ext/ruby-config.h ADDED
@@ -0,0 +1,10 @@
1
+ // These data types may be already defined if building on Windows (using MinGW)
2
+ #ifndef DWORD
3
+ #define DWORD unsigned int
4
+ #endif
5
+ #ifndef WORD
6
+ #define WORD unsigned short
7
+ #endif
8
+ #ifndef BYTE
9
+ #define BYTE unsigned char
10
+ #endif
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
- Csputc_mkd_sta_function_t,
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
@@ -24,7 +24,7 @@
24
24
  # end
25
25
  #
26
26
  class RDiscount
27
- VERSION = '2.2.7.1'
27
+ VERSION = '2.2.7.2'
28
28
 
29
29
  # Original Markdown formatted text.
30
30
  attr_reader :text
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.1'
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.1
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-06-16 00:00:00.000000000 Z
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