relaton-bib 2.1.3 → 2.1.4
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/relaton/bib/sanitizer.rb +9 -2
- data/lib/relaton/bib/version.rb +1 -1
- data/lib/relaton/bib.rb +1 -1
- metadata +3 -7
- data/grammars/basicdoc.rng +0 -2140
- data/grammars/biblio-compile.rng +0 -11
- data/grammars/biblio-standoc.rng +0 -268
- data/grammars/biblio.rng +0 -2125
- /data/{grammars → lib/relaton/bib}/versions.json +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c5fed587d3ea43b2fdba3f26039e44b076eea06413c7d44c815c44054bc2006a
|
|
4
|
+
data.tar.gz: 1ce1ef4de4d2cc010e899971a247bba869ec67f588423dcd5e1e9d44beb36932
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 10279cf57d50ddb7e0339815be6edbc74ebc8568ffae16e2ca75f802939d3027639615fe117f060dc5985d0e3b074d021a4aa8a2a73745c6dd8aac7f71928f6c
|
|
7
|
+
data.tar.gz: a53c8ca8225e43038fab4dc8c39dde6871e8fffdbe1bbc3816a47379dbf79f5033c4a8b5cb2eaefa5aba6529714f289507160c19e0fc70e54541ce18fbe53fae
|
|
@@ -3,12 +3,19 @@ require "nokogiri"
|
|
|
3
3
|
module Relaton
|
|
4
4
|
module Bib
|
|
5
5
|
# Strips inline markup not in the basicdoc PureTextElement set
|
|
6
|
-
# (plus <p>, <eref>, <xref>) from raw marked-up content strings.
|
|
6
|
+
# (plus <p>, <eref>, <xref>, <fn>) from raw marked-up content strings.
|
|
7
7
|
# Disallowed elements are unwrapped: tags removed, inner text kept.
|
|
8
|
+
#
|
|
9
|
+
# <fn> is admitted beyond strict PureTextElement because bibliographic
|
|
10
|
+
# titles in real Metanorma input routinely carry footnotes (e.g. ISO
|
|
11
|
+
# standards titles with a disclaimer footnote), and downstream
|
|
12
|
+
# consumers — notably relaton-render's own inline-tag allow-list —
|
|
13
|
+
# already accept <fn> as a legitimate child of <title>. Stripping it
|
|
14
|
+
# here would break the round-trip.
|
|
8
15
|
module Sanitizer
|
|
9
16
|
ALLOWED = %w[
|
|
10
17
|
em strong sub sup tt underline strike smallcap br stem
|
|
11
|
-
p eref xref
|
|
18
|
+
p eref xref fn
|
|
12
19
|
].freeze
|
|
13
20
|
|
|
14
21
|
RENAME = {
|
data/lib/relaton/bib/version.rb
CHANGED
data/lib/relaton/bib.rb
CHANGED
|
@@ -33,7 +33,7 @@ module Relaton
|
|
|
33
33
|
# @return [Hash{String=>String}] schema versions
|
|
34
34
|
#
|
|
35
35
|
def schema_versions
|
|
36
|
-
@@schema_versions ||= JSON.parse File.read(File.join(__dir__, "
|
|
36
|
+
@@schema_versions ||= JSON.parse File.read(File.join(__dir__, "bib/versions.json"))
|
|
37
37
|
end
|
|
38
38
|
end
|
|
39
39
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: relaton-bib
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.1.
|
|
4
|
+
version: 2.1.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ribose Inc.
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-
|
|
11
|
+
date: 2026-06-02 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bibtex-ruby
|
|
@@ -160,11 +160,6 @@ files:
|
|
|
160
160
|
- bin/rspec
|
|
161
161
|
- bin/setup
|
|
162
162
|
- docs/hash.adoc
|
|
163
|
-
- grammars/basicdoc.rng
|
|
164
|
-
- grammars/biblio-compile.rng
|
|
165
|
-
- grammars/biblio-standoc.rng
|
|
166
|
-
- grammars/biblio.rng
|
|
167
|
-
- grammars/versions.json
|
|
168
163
|
- lib/relaton/bib.rb
|
|
169
164
|
- lib/relaton/bib/converter/asciibib.rb
|
|
170
165
|
- lib/relaton/bib/converter/asciibib/to_asciibib.rb
|
|
@@ -235,6 +230,7 @@ files:
|
|
|
235
230
|
- lib/relaton/bib/sanitizer.rb
|
|
236
231
|
- lib/relaton/bib/util.rb
|
|
237
232
|
- lib/relaton/bib/version.rb
|
|
233
|
+
- lib/relaton/bib/versions.json
|
|
238
234
|
- relaton-bib.gemspec
|
|
239
235
|
homepage: https://github.com/relaton/relaton-bib
|
|
240
236
|
licenses:
|