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 +4 -4
- data/bin/kramdown-rfc-extract-sourcecode +6 -2
- data/kramdown-rfc2629.gemspec +1 -1
- data/lib/kramdown-rfc/command.rb +0 -6
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bd5a2c0f3273c06c40f191cba73edff87064b7b07ff90eb28dbf50ff5128f476
|
4
|
+
data.tar.gz: 9a0a8949db295d24fc6cb7374b6438d3113e9ee84f465d3de4918d18ef1fac52
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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!(
|
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
|
-
|
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]
|
data/kramdown-rfc2629.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
spec = Gem::Specification.new do |s|
|
2
2
|
s.name = 'kramdown-rfc2629'
|
3
|
-
s.version = '1.
|
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.}
|
data/lib/kramdown-rfc/command.rb
CHANGED
@@ -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.
|
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-
|
11
|
+
date: 2023-09-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: kramdown
|