kramdown-rfc2629 1.6.43 → 1.7.1

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: be23f7eeaf77c43ddf7a7c107f4d8b63fbb889e16c8e8bc2f884ee4bf8ed1beb
4
- data.tar.gz: 8e80fe90c56b9a6f71bcde89f7a2e2453723ce1c14ff5da318bf13aef1462aae
3
+ metadata.gz: bd5a2c0f3273c06c40f191cba73edff87064b7b07ff90eb28dbf50ff5128f476
4
+ data.tar.gz: 9a0a8949db295d24fc6cb7374b6438d3113e9ee84f465d3de4918d18ef1fac52
5
5
  SHA512:
6
- metadata.gz: 80ef5c32e66e82c1055a5c3fb5ededfb0d77545b7a9332490efe0eb21e5412786e7037cf0ce82878fccd9acb8b1e6773fc21c5ad5c365702c8eab02c3586511b
7
- data.tar.gz: 3bf117e47f149b84fc99b4c16ebd2df4e1f02d70cde17ece0a07017c96a169fba2a1e63404705610690ea6b2fd7cf0f328183cec34c90f3d8b812beb9442ffe4
6
+ metadata.gz: 735f79f81ac9cb0e19fd06362a79dffe6b5e73e06d658c11b0e62439c8c9b66b40f19252c756a3d5fc592b709d70342ed5ec4c290260d7fd0b9ce080e76c2e67
7
+ data.tar.gz: bf6e459bd077b13b87baee248e4a76f0287833fcbb49d00f009ce5871cc1133742a67c5bf8f1c3d9cdaf27387235e6e464c4043afb863436726f2a49d71a529b
@@ -8,7 +8,8 @@ require_relative '../lib/kramdown-rfc/rexml-all-text.rb'
8
8
 
9
9
  def clean(s)
10
10
  s.gsub!(/\//, ":")
11
- s.gsub!(/[^:\w]/, "_") # handles leading dot, too -- s.gsub!(/\A([.]+)/) {"_" * $1.size } otherwise
11
+ s.gsub!(/\A([-.]+)/) {"_" * $1.size }
12
+ s.gsub!(/[^-.:\w]/, "_")
12
13
  s
13
14
  end
14
15
 
@@ -53,7 +54,10 @@ REXML::XPath.each(d.root, "//sourcecode|//artwork") do |x|
53
54
  if ty = x[:type]
54
55
  ty = clean(ty)
55
56
  name = x[:name]
56
- name = gensym.succ! if !name || name.empty?
57
+ if !name || name.empty?
58
+ name = gensym.succ!.dup
59
+ name = "#{name}.#{ty}" unless ty.empty?
60
+ end
57
61
  name = clean(name)
58
62
  if taken[ty][name]
59
63
  unless warned[ty][name]
@@ -1,6 +1,6 @@
1
1
  spec = Gem::Specification.new do |s|
2
2
  s.name = 'kramdown-rfc2629'
3
- s.version = '1.6.43'
3
+ s.version = '1.7.1'
4
4
  s.summary = "Kramdown extension for generating RFCXML (RFC 799x)."
5
5
  s.description = %{An RFCXML (RFC 799x) generating backend for Thomas Leitner's
6
6
  "kramdown" markdown parser. Mostly useful for RFC writers.}
@@ -294,12 +294,6 @@ def xml_from_sections(input)
294
294
  if o = ps[:'svg-id-cleanup']
295
295
  $options.svg_id_cleanup = o
296
296
  end
297
- if o = ps[:'span-into']
298
- Array(o).each do |el|
299
- Kramdown::Parser::Html::Constants::HTML_CONTENT_MODEL[el] = :span
300
- warn Kramdown::Parser::Html::Constants::HTML_CONTENT_MODEL.inspect
301
- end
302
- end
303
297
 
304
298
  coding_override = ps.has(:coding)
305
299
  smart_quotes = ps[:smart_quotes] || ps[:"smart-quotes"]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kramdown-rfc2629
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.43
4
+ version: 1.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Carsten Bormann
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-09-23 00:00:00.000000000 Z
11
+ date: 2023-09-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: kramdown