metanorma-standoc 3.5.29 → 3.5.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cd644e14545ddd034770bfa7cbaedd6dfa03e0d965747f9e785e3c8d35bed0b0
4
- data.tar.gz: 027e65ca1ce3c58e0263d31060d14948be953567841d615be8d2e4df7d15afdb
3
+ metadata.gz: c2d7915082c5cae65f0681e72ac3815bbcfd88df1102fc1079f28decbd894821
4
+ data.tar.gz: 521849313742749ba454b7cb28405a7515b0c22206a26f6785dc1b36c7e02d12
5
5
  SHA512:
6
- metadata.gz: 43cb4721ce0f090f1d1bc04f82cabb72f32892582b6049b2841ddde12ebcaa471fa1fb907bd1ad959f29c77253c5d8444da43f308957fab08b53c86cc012ac85
7
- data.tar.gz: 7ad4bd3554f62d9404b2df08a8555585f455614c7732de6a0c458a1b482265ce1401a48b5456a3def1db85507c9745a60e0dbdcb795a21044dcaa709ec9da3ff
6
+ metadata.gz: 8d6074cadae2db8fd2c0100dbc810f8ba5e6e6fa6d9cc7c82bb80f875d8dc37b83e67ae6405b155721489e53f2cb07c475041059356c96167e5454fa5c7a2df9
7
+ data.tar.gz: cbf8d42004aacef8246c7f82940e6a433cc84a95ca5e1a6a800cbfe67821d0ae56c073b99afcceab4e9efc90a9830319ad2a83b0346e3a6efc5a80549a10fea6
@@ -27,10 +27,16 @@ module Metanorma
27
27
  # string instead.
28
28
  def ref_dl_cleanup_id(bibitem, clause, authored_id = nil)
29
29
  bibitem["anchor"] = bibitem["id"]
30
- authored_id && !authored_id.empty? and
30
+ # the authored id:: is the citation target and wins over the
31
+ # clause's derived heading anchor: AsciiBib includes pull a
32
+ # foreign draft's bibitems in, and their heading ids must not
33
+ # shadow the authored ids the citations name (metanorma-
34
+ # standoc#1412 follow-up)
35
+ if authored_id && !authored_id.empty?
31
36
  bibitem["anchor"] = authored_id
32
- clause["anchor"] && !/^_/.match(clause["anchor"]) and
37
+ elsif clause["anchor"] && !/^_/.match?(clause["anchor"])
33
38
  bibitem["anchor"] = clause["anchor"]
39
+ end
34
40
  add_id(bibitem)
35
41
  end
36
42
 
@@ -40,6 +40,10 @@ module Metanorma
40
40
  Metanorma::Document::Components::Lists::DefinitionList,
41
41
  collection: true
42
42
 
43
+ attribute :notes,
44
+ Metanorma::Document::Components::Blocks::NoteBlock,
45
+ collection: true
46
+
43
47
  attribute :clause, ClauseSection, collection: true
44
48
 
45
49
  # Term entries
@@ -63,6 +67,7 @@ module Metanorma
63
67
  map_element "p", to: :paragraphs
64
68
  map_element "ul", to: :unordered_lists
65
69
  map_element "dl", to: :definition_lists
70
+ map_element "note", to: :notes
66
71
  map_element "term", to: :terms
67
72
  map_element "terms", to: :term_sections
68
73
  map_element "clause", to: :clause
@@ -19,6 +19,6 @@ module Metanorma
19
19
  end
20
20
 
21
21
  module Standoc
22
- VERSION = "3.5.29".freeze
22
+ VERSION = "3.5.31".freeze
23
23
  end
24
24
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-standoc
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.5.29
4
+ version: 3.5.31
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.