rdiscount 2.2.7.2 → 2.2.7.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/BUILDING +2 -6
- data/CHANGELOG.md +122 -0
- data/Rakefile +3 -0
- data/ext/generate.c +6 -1
- data/ext/gethopt.c +1 -2
- data/ext/toc.c +6 -1
- data/lib/rdiscount.rb +1 -1
- data/rdiscount.gemspec +2 -2
- metadata +3 -3
- data/ext/ruby-config.h +0 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1caa0d04b22615c5a7d74768bd60aea41afff91406b0557831180b8b08a25842
|
4
|
+
data.tar.gz: 3d02b3120eda58da3b54dc162004d6a3ab14b56bd657796026d59931d9cb4088
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
$
|
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 `–` and `—` 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
data/ext/generate.c
CHANGED
@@ -180,13 +180,18 @@ 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
188
|
/* Qanchor() prints out a suitable-for-id-tag version of a string
|
184
189
|
*/
|
185
190
|
static void
|
186
191
|
Qanchor(struct line *p, MMIOT *f)
|
187
192
|
{
|
188
193
|
mkd_string_to_anchor(T(p->text), S(p->text),
|
189
|
-
|
194
|
+
Qchar_mkd_sta_function_t, f, 1, f);
|
190
195
|
}
|
191
196
|
|
192
197
|
|
data/ext/gethopt.c
CHANGED
data/ext/toc.c
CHANGED
@@ -15,6 +15,11 @@
|
|
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
23
|
/* write an header index
|
19
24
|
*/
|
20
25
|
int
|
@@ -64,7 +69,7 @@ mkd_toc(Document *p, char **doc)
|
|
64
69
|
Csprintf(&res, "%*s<li><a href=\"#", srcp->hnumber, "");
|
65
70
|
mkd_string_to_anchor(T(srcp->text->text),
|
66
71
|
S(srcp->text->text),
|
67
|
-
|
72
|
+
Csputc_mkd_sta_function_t,
|
68
73
|
&res,1,p->ctx);
|
69
74
|
Csprintf(&res, "\">");
|
70
75
|
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.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,6 +9,7 @@ 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
|
@@ -44,7 +45,6 @@ Gem::Specification.new do |s|
|
|
44
45
|
ext/pgm_options.h
|
45
46
|
ext/rdiscount.c
|
46
47
|
ext/resource.c
|
47
|
-
ext/ruby-config.h
|
48
48
|
ext/setup.c
|
49
49
|
ext/tags.c
|
50
50
|
ext/tags.h
|
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.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-12-
|
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
|
@@ -58,7 +59,6 @@ files:
|
|
58
59
|
- ext/pgm_options.h
|
59
60
|
- ext/rdiscount.c
|
60
61
|
- ext/resource.c
|
61
|
-
- ext/ruby-config.h
|
62
62
|
- ext/setup.c
|
63
63
|
- ext/tags.c
|
64
64
|
- ext/tags.h
|
data/ext/ruby-config.h
DELETED