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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a7f6a1a5d54bb2ad0e64f98ebe39c519bea34a6252781a294bacae9342072c13
4
- data.tar.gz: a3f32b49f251c6555799c53dcc1d00b08edaf5500a267bd9e459faff33d364c0
3
+ metadata.gz: 43837f0f19e018a47a3ee18855485444712d9649089b4f2feab170a6b79a334e
4
+ data.tar.gz: e61ef75e8873581fd9fb48974a41acf5b22f3732e854eb0cbc9786e2a14fff85
5
5
  SHA512:
6
- metadata.gz: 58d985cce5eb147eb952d9494e1a64207d95a35f054f9aec84378562bb6bdedfd0073306df23ee9214631c6ba73201cd4e98a3abcea8fd56d968235724885202
7
- data.tar.gz: 87a87b2e41d1e763c8bdff7254a64d6c2bd7710b33c6f81909313bd889feba22c932ddc70c725fa0bc40434a404872ffdc80884c1cd9d6f16da4f42828c2fd39
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(id_attr(node)
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
 
@@ -19,6 +19,6 @@ module Metanorma
19
19
  end
20
20
 
21
21
  module Standoc
22
- VERSION = "3.3.2".freeze
22
+ VERSION = "3.3.3".freeze
23
23
  end
24
24
  end
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.2
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-16 00:00:00.000000000 Z
11
+ date: 2026-03-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable