kramdown-rfc2629 1.7.18 → 1.7.19
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/data/kramdown-rfc2629.erb +11 -0
- data/kramdown-rfc2629.gemspec +1 -1
- data/lib/kramdown-rfc2629.rb +16 -4
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f9d9adbae37a16a29017726ef2040d260eb1a2cce9d00ff807828c84275d87eb
|
4
|
+
data.tar.gz: 6018923d328495fb77b78886e467d9c24267bc563d37c71dd527c11c7ee1e709
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5f9e4452395530cd215d5fa3f1c701cd393091424e25e42b564f26c55eb2e6d7601e5da7e87dee2cc6587041b960a76c0aa449277b4ac323b4dc4238a595d3af
|
7
|
+
data.tar.gz: d7e408eca15365eb9b8c653dcd3f3dc78a040e6dc599a8e959e7e8ac59e0c630b196d716511ed345547aa5cc1707a1bf2af6a972d83dbeae3fa6ebbebc3ab8b1
|
data/README.md
CHANGED
@@ -667,7 +667,7 @@ made it possible to license kramdown-rfc under the same license.
|
|
667
667
|
[RFC 2629]: https://www.rfc-editor.org/rfc/rfc2629.html
|
668
668
|
[RFC 7749]: https://www.rfc-editor.org/rfc/rfc7749.html
|
669
669
|
[RFC 7991]: https://www.rfc-editor.org/rfc/rfc7991.html
|
670
|
-
[v3]: https://
|
670
|
+
[v3]: https://authors.ietf.org/rfcxml-vocabulary
|
671
671
|
[markdown]: http://en.wikipedia.org/wiki/Markdown
|
672
672
|
[IETF]: http://www.ietf.org
|
673
673
|
[Miek Gieben]: http://www.miek.nl/
|
data/data/kramdown-rfc2629.erb
CHANGED
@@ -225,6 +225,7 @@
|
|
225
225
|
<%= sh -%>
|
226
226
|
<% if $options.v3 && consec
|
227
227
|
ps.arr("contributor") do |au|
|
228
|
+
if Hash === au
|
228
229
|
aups = KramdownRFC::authorps_from_hash(au)
|
229
230
|
-%>
|
230
231
|
<%= KramdownRFC::person_element_from_aups("contact", aups) -%>
|
@@ -237,7 +238,17 @@
|
|
237
238
|
CONTRIBUTION
|
238
239
|
end -%>
|
239
240
|
<% aups.warn_if_leftovers -%>
|
241
|
+
<% else -%>
|
242
|
+
<%= <<TEXT
|
243
|
+
{:/nomarkdown}
|
244
|
+
|
245
|
+
#{au}
|
246
|
+
|
247
|
+
{::nomarkdown}
|
248
|
+
TEXT
|
249
|
+
-%>
|
240
250
|
<% end -%>
|
251
|
+
<% end -%>
|
241
252
|
<% end -%>
|
242
253
|
</section>
|
243
254
|
<% end -%>
|
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.7.
|
3
|
+
s.version = '1.7.19'
|
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-rfc2629.rb
CHANGED
@@ -621,11 +621,23 @@ COLORS
|
|
621
621
|
outpath = file.path + ".svg"
|
622
622
|
result1 = File.read(outpath) rescue '' # don't die before providing error message
|
623
623
|
File.unlink(outpath) rescue nil # ditto
|
624
|
-
when "plantuml", "plantuml-utxt"
|
624
|
+
when "plantuml", "plantuml-utxt", "plantuml-ascii-art"
|
625
|
+
if t == "plantuml-ascii-art"
|
626
|
+
result, ascii_art = result.split(/^~{3,} ascii-art\n/, 2)
|
627
|
+
unless ascii_art
|
628
|
+
warn "*** Didn't find ascii-art in plantuml-ascii-art #{result.inspect}"
|
629
|
+
ascii_art = result.to_s
|
630
|
+
end
|
631
|
+
end
|
625
632
|
plantuml = "@startuml\n#{result}\n@enduml"
|
626
633
|
result1, err, _s = Open3.capture3("plantuml -pipe -tsvg#{svg_opt}", stdin_data: plantuml);
|
627
|
-
|
628
|
-
|
634
|
+
case t
|
635
|
+
when "plantuml-utxt"
|
636
|
+
result, err1, _s = Open3.capture3("plantuml -pipe -tutxt#{txt_opt}", stdin_data: plantuml)
|
637
|
+
err << err1.to_s
|
638
|
+
when "plantuml-ascii-art"
|
639
|
+
result = ascii_art
|
640
|
+
end
|
629
641
|
when "railroad", "railroad-utf8"
|
630
642
|
result1, err1, _s = Open3.capture3("kgt -l abnf -e svg#{svg_opt}", stdin_data: result);
|
631
643
|
result1 = svg_clean_kgt(result1); dont_clean = true
|
@@ -719,7 +731,7 @@ COLORS
|
|
719
731
|
case t
|
720
732
|
when "aasvg", "ditaa", "goat",
|
721
733
|
"math", "math-asciitex", "mermaid", "mscgen",
|
722
|
-
"plantuml", "plantuml-utxt",
|
734
|
+
"plantuml", "plantuml-utxt", "plantuml-ascii-art",
|
723
735
|
"protocol", "protocol-aasvg", "protocol-goat",
|
724
736
|
"railroad", "railroad-utf8"
|
725
737
|
if gi
|
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.
|
4
|
+
version: 1.7.19
|
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-
|
11
|
+
date: 2024-08-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: kramdown
|
@@ -222,7 +222,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
222
222
|
- !ruby/object:Gem::Version
|
223
223
|
version: '0'
|
224
224
|
requirements: []
|
225
|
-
rubygems_version: 3.5.
|
225
|
+
rubygems_version: 3.5.14
|
226
226
|
signing_key:
|
227
227
|
specification_version: 4
|
228
228
|
summary: Kramdown extension for generating RFCXML (RFC 799x).
|