kramdown 2.3.1 → 2.3.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: eae4381ea8cc119f4cc1422de0b8c78baad5fc08b930111f66addb73776b7f81
4
- data.tar.gz: 75c9f3f7a2385990fa9b490e073bd8d0f34efbb30e1f1b2fe80d4592c3668648
3
+ metadata.gz: f656918e531f3b20c720da64a979ea287aabf5e9b2a9bb18599d968957926e41
4
+ data.tar.gz: 3150331b7195b4dd186984a301a174ca0943e85ad11c3aef47b797b9dd46ad58
5
5
  SHA512:
6
- metadata.gz: 64dfda6f14d6080a968682c5a5f0209a0455733ffbc8bfb7caf8519971cef64a553b4fcc0e18c63812dee4ed3e703dd512abd99cdf8714c9b921e9f93c618026
7
- data.tar.gz: bcb900ad8208a1faf047c486015b8ff45fea819e5a45716f6a3a7c04a1958301e5a499bf6baa54988890425fa4fed79fe6c414c4a68493db8a82a5be887935aa
6
+ metadata.gz: d7b0d8a7af60a0c72a6a49b26a05fc8fe3c348458802f489891166711aad985d0240d8b8882432d81ba6a061fd78e5c598ddc6dd6fa5f5de7b1aa57cf5fc9514
7
+ data.tar.gz: bec4c4bb4705f28db0bc4b7f3e4f6105e531a8711870edd90f36b0e270a653305bef544116760d3748ef91f112d51e666b468c38cddc116bcdf8c1267fbab1d3
data/CONTRIBUTERS CHANGED
@@ -1,6 +1,6 @@
1
1
  Count Name
2
2
  ======= ====
3
- 944 Thomas Leitner <t_leitner@gmx.at>
3
+ 960 Thomas Leitner <t_leitner@gmx.at>
4
4
  18 Ashwin Maroli <ashmaroli@gmail.com>
5
5
  7 Christian Cornelssen <ccorn@1tein.de>
6
6
  6 Gioele Barabucci <gioele@svario.it>
@@ -20,6 +20,7 @@
20
20
  2 Nathanael Jones <nathanael.jones@gmail.com>
21
21
  2 Max Meyer <dev@fedux.org>
22
22
  2 Jo Hund <jhund@clearcove.ca>
23
+ 2 Carsten Bormann <cabo@tzi.org>
23
24
  2 Bran <m.versum@gmail.com>
24
25
  1 winniehell <git@winniehell.de>
25
26
  1 William <suttonwilliamd@gmail.com>
@@ -28,12 +29,15 @@
28
29
  1 Trevor Wennblom <trevor@well.com>
29
30
  1 tomykaira <tomykaira@gmail.com>
30
31
  1 tom93 <tomlevy93@gmail.com>
32
+ 1 Tobin Yehle <tobinyehle@gmail.com>
33
+ 1 timcraft <mail@timcraft.com>
31
34
  1 Tim Blair <tim@bla.ir>
32
35
  1 Tim Besard <tim.besard@gmail.com>
33
36
  1 Tim Bates <tim@rumpuslabs.com>
34
37
  1 Sun Yaozhu <yzyzsun@gmail.com>
35
38
  1 Stephen <stephengroat@users.noreply.github.com>
36
39
  1 Stephen Crosby <stevecrozz@gmail.com>
40
+ 1 Stan Hu <stanhu@gmail.com>
37
41
  1 Simon Lydell <simon.lydell@gmail.com>
38
42
  1 Simon Coffey <simon.coffey@futurelearn.com>
39
43
  1 Shusaku NAKAZATO <cu393uc@gmail.com>
@@ -65,11 +69,13 @@
65
69
  1 Fangyi Zhou <me@fangyi.io>
66
70
  1 Diego Galeota <diegobg123@gmail.com>
67
71
  1 David Rodríguez <deivid.rodriguez@riseup.net>
72
+ 1 Daniel Bair <daniel@danielbair.com>
68
73
  1 Damien Pollet <damien.pollet@gmail.com>
69
74
  1 Christopher Jefferson <caj21@st-andrews.ac.uk>
70
75
  1 Cédric Boutillier <cedric.boutillier@gmail.com>
71
76
  1 Bob Lail <lail@squareup.com>
72
77
  1 Ashe Connor <ashe@kivikakk.ee>
78
+ 1 aschmitz <29508+aschmitz@users.noreply.github.com>
73
79
  1 Antoine Cotten <hello@acotten.com>
74
80
  1 Andrew <andrew.dale.wylie@gmail.com>
75
81
  1 Alpha Chen <alpha.chen@gmail.com>
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.3.0
1
+ 2.3.2
@@ -596,7 +596,9 @@ module Kramdown
596
596
  define(:forbidden_inline_options, Object, %w[template], <<~EOF) do |val|
597
597
  Defines the options that may not be set using the {::options} extension
598
598
 
599
- Default: template
599
+ The value needs to be an array of option names.
600
+
601
+ Default: [template]
600
602
  Used by: HTML converter
601
603
  EOF
602
604
  val.map! {|item| item.kind_of?(String) ? str_to_sym(item) : item }
@@ -240,7 +240,14 @@ module Kramdown
240
240
  return
241
241
  when :html_element
242
242
  when :root
243
- el.children.each {|c| process(c) }
243
+ el.children.map! do |c|
244
+ if c.type == :text
245
+ process_text(c.value, !do_conversion)
246
+ else
247
+ process(c)
248
+ c
249
+ end
250
+ end.flatten!
244
251
  remove_whitespace_children(el)
245
252
  return
246
253
  else return
@@ -41,7 +41,11 @@ module Kramdown
41
41
  text = text[1..-1] if text[0..0] == ' '
42
42
  text = text[0..-2] if text[-1..-1] == ' '
43
43
  end
44
- @tree.children << Element.new(:codespan, text, nil, location: start_line_number)
44
+ @tree.children << Element.new(:codespan, text, nil, {
45
+ codespan_delimiter: result,
46
+ location: start_line_number
47
+ })
48
+
45
49
  else
46
50
  @src.revert_pos(saved_pos)
47
51
  add_text(result)
@@ -69,6 +69,7 @@ module Kramdown
69
69
  eob_found = true
70
70
  break
71
71
  elsif @src.scan(list_start_re)
72
+ list.options[:first_list_marker] ||= @src[1].strip
72
73
  item = Element.new(:li, nil, nil, location: start_line_number)
73
74
  item.value, indentation, content_re, lazy_re, indent_re =
74
75
  parse_first_list_line(@src[1].length, @src[2])
@@ -10,6 +10,6 @@
10
10
  module Kramdown
11
11
 
12
12
  # The kramdown version.
13
- VERSION = '2.3.1'
13
+ VERSION = '2.3.2'
14
14
 
15
15
  end
data/man/man1/kramdown.1 CHANGED
@@ -122,7 +122,9 @@ Default: \[u2018]\[u2019] Used by: HTML
122
122
  Defines the options that may not be set using the {::options} extension
123
123
  .RS
124
124
  .P
125
- Default: template Used by: HTML converter
125
+ The value needs to be an array of option names\.
126
+ .P
127
+ Default: [template] Used by: HTML converter
126
128
  .RE
127
129
  .TP
128
130
  \fB\-\-header\-offset\fP \fIARG\fP
@@ -114,7 +114,7 @@ line breaks\.
114
114
  .P
115
115
  Abbreviations like MD can be used but the abbreviation title is ignored\.
116
116
  .P
117
- Math elements work \fB\el = 5\fP inline and in block form:
117
+ Math elements work \fB\elambda = 5\fP inline and in block form:
118
118
  .sp
119
119
  .RS 4
120
120
  .EX
@@ -80,6 +80,6 @@ ignored.
80
80
 
81
81
  *[MD]: Markdown
82
82
 
83
- Math elements work $$\l = 5$$ inline and in block form:
83
+ Math elements work $$\lambda = 5$$ inline and in block form:
84
84
 
85
85
  $$\lambda_5 = \alpha + 4$$
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kramdown
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.1
4
+ version: 2.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thomas Leitner
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-03-17 00:00:00.000000000 Z
11
+ date: 2022-03-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rexml
@@ -661,7 +661,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
661
661
  - !ruby/object:Gem::Version
662
662
  version: '0'
663
663
  requirements: []
664
- rubygems_version: 3.0.3
664
+ rubygems_version: 3.2.32
665
665
  signing_key:
666
666
  specification_version: 4
667
667
  summary: kramdown is a fast, pure-Ruby Markdown-superset converter.