kramdown-rfc2629 1.7.30 → 1.7.31
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 +4 -4
- data/kramdown-rfc2629.gemspec +1 -1
- data/lib/kramdown-rfc2629.rb +13 -8
- 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: ad73a0be2ca5aab66ae6c71e4ed90271b1d0b3c999900810a85f43e80efba3d1
|
|
4
|
+
data.tar.gz: 9cc3e7f47958822a4fa348580ad7dbbeafc9e98eb28787d8e1aeb92aefe55439
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: bfd6c59e980544ce09b5012f1e6afa1a0dcbf89e4aa66b7076e9183ce97aa24f97af6b70efbcfe21098c3184b55bc88e26c9e510cc25d49e5f14f6044a765a54
|
|
7
|
+
data.tar.gz: 3ee7d63ba12513e51aceaa020de97d048f1b27f733475f6c03edcae3545ec283327aceadcd4b3f1d448a009ece284379f8e680d999f79ad72d595608576d0206
|
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.31'
|
|
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
|
@@ -751,7 +751,10 @@ COLORS
|
|
|
751
751
|
"#{' '*indent}<figure#{el_html_attributes(el)}>#{retart}</figure>\n"
|
|
752
752
|
else
|
|
753
753
|
gi ||= (
|
|
754
|
-
if !$options.v3 || !t || ARTWORK_TYPES.include?(t)
|
|
754
|
+
if !$options.v3 || !t || ARTWORK_TYPES.include?(t)
|
|
755
|
+
"artwork"
|
|
756
|
+
elsif artwork_attr["align"]
|
|
757
|
+
warn "** RFXCMLv3 does not yet allow setting align= for <sourcecode, falling back to <artwork"
|
|
755
758
|
"artwork"
|
|
756
759
|
else
|
|
757
760
|
"sourcecode"
|
|
@@ -1563,17 +1566,19 @@ COLORS
|
|
|
1563
1566
|
|
|
1564
1567
|
else
|
|
1565
1568
|
type = 'spanx'
|
|
1566
|
-
if $options.v3
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
attrstring = el_html_attributes_with(el, {"fullname" => result.chomp, "asciiFullname" => ''})
|
|
1569
|
+
if $options.v3 # could use utftex if present
|
|
1570
|
+
content = escape_html(munge_latex(el.value).chomp, :text)
|
|
1571
|
+
attrstring = el_html_attributes_with(el, {"style" => 'none'})
|
|
1570
1572
|
else
|
|
1571
1573
|
warn "*** no support for inline math in XML2RFCv2"
|
|
1572
|
-
type = 'spanx'
|
|
1573
|
-
attrstring = el_html_attributes_with(el, {"style" => 'verb'})
|
|
1574
1574
|
content = escape_html(el.value, :text)
|
|
1575
|
+
attrstring = el_html_attributes_with(el, {"style" => 'verb'})
|
|
1576
|
+
end
|
|
1577
|
+
if attrstring == ' style="none"'
|
|
1578
|
+
content
|
|
1579
|
+
else
|
|
1580
|
+
"<#{type}#{attrstring}>#{content}</#{type}>" # this might get a style=none...
|
|
1575
1581
|
end
|
|
1576
|
-
"<#{type}#{attrstring}>#{content}</#{type}>"
|
|
1577
1582
|
end
|
|
1578
1583
|
end
|
|
1579
1584
|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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.31
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Carsten Bormann
|
|
@@ -238,7 +238,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
238
238
|
- !ruby/object:Gem::Version
|
|
239
239
|
version: '0'
|
|
240
240
|
requirements: []
|
|
241
|
-
rubygems_version:
|
|
241
|
+
rubygems_version: 4.0.2
|
|
242
242
|
specification_version: 4
|
|
243
243
|
summary: Kramdown extension for generating RFCXML (RFC 799x).
|
|
244
244
|
test_files: []
|