relaton-bib 2.1.6 → 2.1.7
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 -3
- data/lib/relaton/bib/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: 15d36c3ed1e4ae0042f96a06a6320dccbe089a87a691b77b8ad14e276217bd22
|
|
4
|
+
data.tar.gz: d6db31f185b72668da0c289bc462a62d1cfd1b9dda542f37b9dee7257d5282b4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 304fcb5b02e2c019d532164228acede4ed81c210eafededbbdd9446ac94fcd32d142be5be7689db09bc17b7aa3e6cfb333b892220ba36e64fcccc2bdda2df29c
|
|
7
|
+
data.tar.gz: 390cf8b808ab85b099d573b4bea833d265a2326d81c00936e5cebe6ae79c9243991843d44a46d3d24e403137f1ec27b433acc532c51f99a0d5e91d0ed66d6744
|
|
@@ -3,8 +3,14 @@ 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>, <fn>) from raw marked-up content
|
|
7
|
-
# Disallowed elements are unwrapped: tags removed, inner text
|
|
6
|
+
# (plus <p>, <eref>, <xref>, <fn>, <link>) from raw marked-up content
|
|
7
|
+
# strings. Disallowed elements are unwrapped: tags removed, inner text
|
|
8
|
+
# kept.
|
|
9
|
+
#
|
|
10
|
+
# <link> is admitted because basicdoc expresses external hyperlinks as
|
|
11
|
+
# <link target="...">; without it a from_xml -> to_xml round-trip drops
|
|
12
|
+
# the tag and its target URL, keeping only the link text (see #122,
|
|
13
|
+
# which broke metanorma amend()).
|
|
8
14
|
#
|
|
9
15
|
# <fn> is admitted beyond strict PureTextElement because bibliographic
|
|
10
16
|
# titles in real Metanorma input routinely carry footnotes (e.g. ISO
|
|
@@ -22,7 +28,7 @@ module Relaton
|
|
|
22
28
|
module Sanitizer
|
|
23
29
|
ALLOWED = %w[
|
|
24
30
|
em strong sub sup tt underline strike smallcap br stem
|
|
25
|
-
p eref xref fn
|
|
31
|
+
p eref xref fn link
|
|
26
32
|
].freeze
|
|
27
33
|
|
|
28
34
|
# Elements whose children are non-basicdoc inline notation
|
data/lib/relaton/bib/version.rb
CHANGED
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.7
|
|
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-07-
|
|
11
|
+
date: 2026-07-31 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bibtex-ruby
|