rdiscount 2.2.7.1 → 2.2.7.3

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: 1caa0d04b22615c5a7d74768bd60aea41afff91406b0557831180b8b08a25842
4
+ data.tar.gz: 3d02b3120eda58da3b54dc162004d6a3ab14b56bd657796026d59931d9cb4088
5
5
  SHA512:
6
- metadata.gz: 7c7214d4b3cff6b03ddb0ae4636f82a9d46c67f3cd3e9958abfd4cff6a107cf42149f2d889578b292ec41d8226fbc0532c1c62fe1db277ccbfa276510fd4b50d
7
- data.tar.gz: 90e140816a109a06be1aecb8d2edad72f92b2981eb8e4173ae1ff4c7f931e24029fe473d021976a8b824ea91dc84d8ef53187b3bc01692dccfd6a3c5006b4db4
6
+ metadata.gz: 11053a0e075ba81143cd3cce86f5ccf55d2769600b987734da2c42db817b539fd9ed444c3219fe4c9bfd7998abda905a78cd27b5404a68dc9afec58218062cdc
7
+ data.tar.gz: 224c5b32b0dceeedff8e435d8467f331a1e14e210268464e3ee2ca5af658c17a2bd102661dd1895e48f1fea429eb97ab00142df72c2fbdfcad87b951d4def3b3
data/BUILDING CHANGED
@@ -47,13 +47,9 @@ Copy the new Discount sources to the appropriate directories for RDiscount:
47
47
 
48
48
  $ rake gather
49
49
 
50
- Update rdiscount.gemspec to include all *.c, *.h, and *.rb files in
51
- ext. This must be done manually. Here's a quick way to get the full list:
50
+ Update rdiscount.gemspec to include all *.c, *.h, and *.rb files in ext:
52
51
 
53
- $ echo ext/*.c ext/*.h ext/*.rb ext/blocktags ext/VERSION | tr ' ' "\n" | sort
54
-
55
- (There is an old Rakefile target called "rdiscount.gemspec" that looks like it
56
- is designed to perform an update of these files, however I haven't tested it.)
52
+ $ rake rdiscount.gemspec
57
53
 
58
54
  Build the RDiscount gem. If you get errors related to missing files
59
55
  in ext, make sure you updated the gemspec correctly in the previous step.
data/CHANGELOG.md ADDED
@@ -0,0 +1,122 @@
1
+ # RDiscount Changelog
2
+
3
+ ## Version 2.2.7.3 <small>(December 31, 2023)</small>
4
+
5
+ * Add Ruby 3.2 and 3.3 to continuous integration
6
+ * Reinstate fix for compilation issue with Clang 16
7
+
8
+ ## Version 2.2.7.2 <small>(December 19, 2023)</small>
9
+
10
+ * Discount upgraded from 2.2.7c -> 2.2.7d
11
+ * Fix compilation on openSUSE Tumbleweed
12
+
13
+ ## Version 2.2.7.1 <small>(June 16, 2023)</small>
14
+
15
+ * Fix to not filter out `<style>` tags by default in Markdown output,
16
+ unless `filter_styles` is enabled
17
+ * Fix compilation issue with Clang 16
18
+ * Add TruffleRuby to continuous integration
19
+
20
+ ## Version 2.2.7 <small>(October 23, 2022)</small>
21
+
22
+ * Discount upgraded from 2.2.0 -> 2.2.7c
23
+ * Implement support for :latex
24
+ * Implement support for :explicitlist
25
+ * Move CI to GitHub action and fix CI builds (Ruby 2.7 - 3.1)
26
+ * Drop support for all EOL Ruby versions (eg > 2.7)
27
+ * Fixing conformance tests to run version 1.0 and 1.0.3
28
+
29
+ ## Version 2.2.0.2 <small>(August 9, 2020)</small>
30
+
31
+ * Fix compilation error on macOS Big Sur Preview (11.0).
32
+ * Enable continuous integration with Ruby 2.4-2.6.
33
+ * Builds with Ruby 2.7.0 locally but not on Travis CI.
34
+
35
+ ## Version 2.2.0.1 <small>(May 7, 2016)</small>
36
+
37
+ * Discount upgraded from 2.1.8 -> 2.2.0
38
+ * Fix compilation error on MSVC (Windows).
39
+ * Enable continuous integration with Ruby 2.3.0.
40
+
41
+ ## Version 2.1.8 <small>(February 1, 2015)</small>
42
+
43
+ * Compatible with Ruby 2.2.
44
+ * Discount upgraded from 2.1.7 -> 2.1.8
45
+ * GitHub-style language attributes on fenced code blocks.
46
+ * Long numeric list items.
47
+ * Fix footnote numbering inside of nested elements.
48
+ * Fix a bug where autolink + github flavored markdown absorbs the ^C eoln character into a link at the end of a line.
49
+
50
+ ## Version 2.1.7.1 <small>(April 12, 2014)</small>
51
+
52
+ * Compatible with Xcode 5.1's clang on OS X.
53
+
54
+ ## Version 2.1.7 <small>(October 13, 2013)</small>
55
+
56
+ * Discount upgraded from 2.1.6 -> 2.1.7
57
+ * GFM fenced code blocks support a language identifier.
58
+ * Definition lists:
59
+ * [Discount-style definition lists](http://www.pell.portland.or.us/~orc/Code/discount/#dl)
60
+ * [PHP Markdown Extra definition lists](http://michelf.ca/projects/php-markdown/extra/#def-list)
61
+
62
+ ## Version 2.1.6 <small>(May 28, 2013)</small>
63
+
64
+ * Discount upgraded from 2.0.7 -> 2.1.6
65
+ * Fenced code blocks
66
+ * backtick-delimited – from GitHub Flavored Markdown
67
+ * tilde-delimited – from PHP Markdown Extra
68
+ * New extensions:
69
+ * `:no_superscript` - Disables superscript processing.
70
+ * `:no_strikethrough` - Disables strikethrough processing.
71
+ * License changed from 4-clause BSD to the more-permissive 3-clause BSD.
72
+ * Fix `--` and `---` to be converted to `&ndash;` and `&mdash;` correctly.
73
+ * Fix handling of tables that have leading and trailing pipe characters.
74
+ * Fix generated table of contents to be valid HTML.
75
+ Handling of special characters in headings is also improved.
76
+ * Fix recognition of HTML tags that contain - or _.
77
+
78
+ ## Version 2.0.7.3 <small>(May 7, 2013)</small>
79
+
80
+ * Fix usage of deallocated memory when manipulating locale information.
81
+ * Special thanks to Dirkjan Bussink (@dbussink) for identifying this bug and providing the initial fix.
82
+ * Fix outdated links. Notably the API reference.
83
+ * Setup continuous integration.
84
+
85
+ ## Version 2.0.7.2 <small>(Apr 6, 2013)</small>
86
+
87
+ * Fix compile error on Windows.
88
+ * Disallow install on Ruby 1.9.2, due to known bugs in Ruby.
89
+ * Please upgrade to Ruby 1.9.3 or later.
90
+
91
+ ## Version 2.0.7.1 <small>(Feb 26, 2013)</small>
92
+
93
+ * Discount upgraded from 2.0.7 (non-final) -> 2.0.7
94
+ * Fix encoding of Unicode characters in URLs.
95
+
96
+ ## Version 2.0.7 <small>(Jan 29, 2013)</small>
97
+
98
+ ### New Features
99
+
100
+ * Discount upgraded from 1.6.8 -> 2.0.7 (non-final)
101
+ * Footnotes - from *PHP Markdown Extra*
102
+ * Superscript tweaks
103
+ * Be more picky about what comes before a ^ if we’re superscripting.
104
+ * Modify superscript grabbing so that it grabs parenthetical and alphanumeric blocks.
105
+ * Other bug fixes
106
+ * Table-of-contents generation will no longer crash for header items containing links.
107
+ * Adjacent new-style [link]s are no longer incorrectly combined.
108
+
109
+ ### Known Issues
110
+
111
+ * Fails to build with MinGW or MinGW-64.
112
+ * Regression: Tags containing dashes and underscores are not escaped correctly.
113
+ * This will be fixed in RDiscount 2.1.5
114
+
115
+ ## Version 1.6.8 <small>(Jan 25, 2011)</small>
116
+
117
+ * Discount upgraded from 1.6.5 -> 1.6.8
118
+ * Fix escaping of tags containing dashes and underscores.
119
+
120
+ ## Earlier Releases
121
+
122
+ * Inspect the Git history.
data/Rakefile CHANGED
@@ -171,6 +171,9 @@ task :gather => 'discount/markdown.h' do |t|
171
171
 
172
172
  # Copy man page
173
173
  cp 'discount/markdown.7', 'man/'
174
+
175
+ # Apply patches
176
+ system('cat ext.diff | patch -p1 -d ext')
174
177
  end
175
178
 
176
179
  file 'discount/markdown.h' do |t|
data/ext/VERSION CHANGED
@@ -1 +1 @@
1
- 2.2.7c
1
+ 2.2.7d
data/ext/generate.c CHANGED
@@ -184,6 +184,7 @@ static int Qchar_mkd_sta_function_t(const int n, const void* iot) {
184
184
  Qchar(n, iot);
185
185
  }
186
186
 
187
+
187
188
  /* Qanchor() prints out a suitable-for-id-tag version of a string
188
189
  */
189
190
  static void
@@ -761,22 +762,29 @@ linkylinky(int image, MMIOT *f)
761
762
  else {
762
763
  int goodlink, implicit_mark = mmiottell(f);
763
764
 
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);
765
+ if ( is_flag_set(f->flags, MKD_EXTRA_FOOTNOTE)
766
+ && !is_flag_set(f->flags, MKD_STRICT)
767
+ && (!image)
768
+ && S(name)
769
+ && T(name)[0] == '^' ) {
770
+ extra_footnote = 1;
771
+ goodlink = 1;
770
772
  }
771
773
  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);
774
+ if ( isspace(peek(f,1)) )
775
+ pull(f);
777
776
 
778
- if ( is_flag_set(f->flags, MKD_EXTRA_FOOTNOTE) && (!image) && S(name) && T(name)[0] == '^' )
779
- extra_footnote = 1;
777
+ if ( peek(f,1) == '[' ) {
778
+ pull(f); /* consume leading '[' */
779
+ goodlink = linkylabel(f, &key.tag);
780
+ }
781
+ else {
782
+ /* new markdown implicit name syntax doesn't
783
+ * require a second []
784
+ */
785
+ mmiotseek(f, implicit_mark);
786
+ goodlink = !is_flag_set(f->flags, MKD_1_COMPAT);
787
+ }
780
788
  }
781
789
 
782
790
  if ( goodlink ) {
data/ext/toc.c CHANGED
@@ -19,6 +19,7 @@ static int Csputc_mkd_sta_function_t(const int n, const void* iot) {
19
19
  Csputc(n, iot);
20
20
  }
21
21
 
22
+
22
23
  /* write an header index
23
24
  */
24
25
  int
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.3'
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.3'
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/'
@@ -9,17 +9,19 @@ Gem::Specification.new do |s|
9
9
  # = MANIFEST =
10
10
  s.files = %w[
11
11
  BUILDING
12
+ CHANGELOG.md
12
13
  COPYING
13
14
  README.markdown
14
15
  Rakefile
15
16
  bin/rdiscount
16
17
  discount
18
+ ext/Csio.c
19
+ ext/VERSION
17
20
  ext/amalloc.c
18
21
  ext/amalloc.h
19
22
  ext/basename.c
20
23
  ext/blocktags
21
24
  ext/config.h
22
- ext/Csio.c
23
25
  ext/css.c
24
26
  ext/cstring.h
25
27
  ext/docheader.c
@@ -47,7 +49,6 @@ Gem::Specification.new do |s|
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.3
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-31 00:00:00.000000000 Z
16
16
  dependencies: []
17
17
  description:
18
18
  email: david@dafoster.net
@@ -24,6 +24,7 @@ extra_rdoc_files:
24
24
  - COPYING
25
25
  files:
26
26
  - BUILDING
27
+ - CHANGELOG.md
27
28
  - COPYING
28
29
  - README.markdown
29
30
  - Rakefile