metanorma-standoc 3.3.2 → 3.3.3
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/lib/metanorma/converter/inline.rb +11 -3
- data/lib/metanorma/converter/lists.rb +5 -1
- data/lib/metanorma/converter/version.rb +1 -1
- 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: 43837f0f19e018a47a3ee18855485444712d9649089b4f2feab170a6b79a334e
|
|
4
|
+
data.tar.gz: e61ef75e8873581fd9fb48974a41acf5b22f3732e854eb0cbc9786e2a14fff85
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 98d17dd9fff2b1273a6e49d97ec690efcab2b657750d9ec56556f51058a6a2bca76385a0627dba3772d04c441a5f10af53198bf3577f3bdac38cab9dd25c0fc8
|
|
7
|
+
data.tar.gz: 7bf25252d4271bea8bdf9f29d4b3340b04b318f15e451dc7f65ac3217173a71b2af75afc7e296400dff3dde7a166fcc68e62601a70a9e4f8eb7de3cfc2b33ab8
|
|
@@ -162,17 +162,25 @@ module Metanorma
|
|
|
162
162
|
|
|
163
163
|
def image_attributes1(node, uri, sourceuri, type, altmedia)
|
|
164
164
|
/^data:/.match?(sourceuri) and sourceuri = nil
|
|
165
|
-
attr_code(
|
|
165
|
+
attr_code(altmedia_id_attr(node, altmedia)
|
|
166
166
|
.merge(src: uri, mimetype: type,
|
|
167
167
|
height: node.attr("height") || "auto",
|
|
168
168
|
width: node.attr("width") || "auto",
|
|
169
169
|
filename: node.attr("filename") || sourceuri,
|
|
170
170
|
title: node.attr("titleattr"),
|
|
171
|
-
media: node.attr("media"),
|
|
172
|
-
altmedia: altmedia,
|
|
171
|
+
media: node.attr("media"), altmedia: altmedia,
|
|
173
172
|
alt: node.alt == node.attr("default-alt") ? nil : node.alt))
|
|
174
173
|
end
|
|
175
174
|
|
|
175
|
+
def altmedia_id_attr(node, altmedia)
|
|
176
|
+
ret = id_attr(node)
|
|
177
|
+
if altmedia
|
|
178
|
+
add_id(ret)
|
|
179
|
+
ret.delete(:anchor)
|
|
180
|
+
end
|
|
181
|
+
ret
|
|
182
|
+
end
|
|
183
|
+
|
|
176
184
|
def inline_image(node)
|
|
177
185
|
noko do |xml|
|
|
178
186
|
xml.image **image_attributes(node)
|
|
@@ -22,7 +22,9 @@ module Metanorma
|
|
|
22
22
|
end
|
|
23
23
|
|
|
24
24
|
def ul_attrs(node)
|
|
25
|
-
attr_code(id_attr(node).merge(keep_attrs(node)
|
|
25
|
+
attr_code(id_attr(node).merge(keep_attrs(node)
|
|
26
|
+
.merge(display: node.attr("display"),
|
|
27
|
+
"display-directives": node.attr("display-directives"))))
|
|
26
28
|
end
|
|
27
29
|
|
|
28
30
|
def ul_li_attrs(node)
|
|
@@ -60,6 +62,8 @@ module Metanorma
|
|
|
60
62
|
attr_code(id_attr(node).merge(keep_attrs(node)
|
|
61
63
|
.merge(type: olist_style(node.style),
|
|
62
64
|
start: node.attr("start"),
|
|
65
|
+
display: node.attr("display"),
|
|
66
|
+
"display-directives": node.attr("display-directives"),
|
|
63
67
|
"explicit-type": olist_style(node.attributes[1]))))
|
|
64
68
|
end
|
|
65
69
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: metanorma-standoc
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.3.
|
|
4
|
+
version: 3.3.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ribose Inc.
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-03-
|
|
11
|
+
date: 2026-03-30 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: addressable
|