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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9c31cacb170e9441c45a4103838d25c58057e82a24e8b83c4f889f2999968fe3
4
- data.tar.gz: 28856ec2709501d82efa918a127ec23a9742bdd9e610597707367983433df7d9
3
+ metadata.gz: 15d36c3ed1e4ae0042f96a06a6320dccbe089a87a691b77b8ad14e276217bd22
4
+ data.tar.gz: d6db31f185b72668da0c289bc462a62d1cfd1b9dda542f37b9dee7257d5282b4
5
5
  SHA512:
6
- metadata.gz: adc75a6f70d8fc625b51e5015f903728c00ca72b9301187cd58133f0a0088e31f908cbc8d4f28292964093aeb12506d107575474d6e9b273543c2354e175c167
7
- data.tar.gz: 509bb3955d8313ef5cd56fbfefa6d151b2002535fefabae6b3926f9ff05aaa22ea0e87802d9ab8d08a108b252e0b2d8483a5c90a72c78cf391a8a3bdfbf922f5
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 strings.
7
- # Disallowed elements are unwrapped: tags removed, inner text kept.
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
@@ -1,5 +1,5 @@
1
1
  module Relaton
2
2
  module Bib
3
- VERSION = "2.1.6".freeze
3
+ VERSION = "2.1.7".freeze
4
4
  end
5
5
  end
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.6
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-20 00:00:00.000000000 Z
11
+ date: 2026-07-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bibtex-ruby