kramdown-rfc2629 1.7.16 → 1.7.17

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: '08560094ccf3ff9b17ea095e7d32d162d22c526bfd805a7587d4703eee13d331'
4
- data.tar.gz: 8249d51a8ea2bf5c31ff0127fab36ed59e464bb61bb46ad55f9006c4f15e1111
3
+ metadata.gz: 52b682df54c2649c4ef7f2d2e08652c3709866207eab40c6fd40d667b4a00693
4
+ data.tar.gz: dba5488edbd5881fa69f5bca0b98db2347500fc34aa2fcdb33d71ba881f9596c
5
5
  SHA512:
6
- metadata.gz: 9e43283396558a3026f4577b772c391f322c1bde5bc2f8a51f13c1f4b9c65e4a672da138c82b1514f7dc7918a8ad59b45feda926353fc3db5b168f887866d900
7
- data.tar.gz: 044a7240c07fcedce96c84f94b21c79719015677a0d1ae5ae7ea7bed29be47afce4b3dd8449768fb844aedff54d32f604ebdfdff536ec16b7b9ff9cd4b1c63e3
6
+ metadata.gz: 9d4215bd5369fa73c6618101ae5c5e242ad3a1c6b6a586a588a81d8a31441efda575b3e1135be88c5204e7f81b744b744346086ea06dfb8b61b9a7eaf193c427
7
+ data.tar.gz: db9621882c176186a9d407c38a0d573e849de7f6eac7483a7a666c788b9a14b3662faedb48a43796caad7a50b9b65c0f48cb4d523dae1e88c1fa940c582fc1d7
@@ -1,6 +1,6 @@
1
1
  spec = Gem::Specification.new do |s|
2
2
  s.name = 'kramdown-rfc2629'
3
- s.version = '1.7.16'
3
+ s.version = '1.7.17'
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.}
@@ -459,6 +459,24 @@ def xml_from_sections(input)
459
459
  sechash[sn.to_s] << %{&#{bts};\n} # ???
460
460
  end
461
461
  else
462
+ if v && Integer === v
463
+ case href
464
+ when /\AErr(.*)/
465
+ epno = $1
466
+ rfcno = v.to_s
467
+ v = {
468
+ "target" => "https://www.rfc-editor.org/errata/eid#{epno}",
469
+ "title" => "RFC Errata Report #{epno}",
470
+ "quote-title" => false,
471
+ "seriesinfo" => { "RFC" => rfcno },
472
+ "date" => false
473
+ }
474
+ else
475
+ # superfluous -- would be caught by next "unless"
476
+ warn "*** don't know how to expand numeric ref #{k}"
477
+ next
478
+ end
479
+ end
462
480
  unless v && Hash === v
463
481
  warn "*** don't know how to expand ref #{k}"
464
482
  next
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.7.16
4
+ version: 1.7.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Carsten Bormann
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-06-14 00:00:00.000000000 Z
11
+ date: 2024-06-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: kramdown