coradoc 2.0.25 → 2.0.26
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/coradoc/core_model/image.rb +5 -2
- data/lib/coradoc/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6b56fd30c086580f71f5b576a209ba6ad20c5aa590fbd09d62477a7f85a4988f
|
|
4
|
+
data.tar.gz: 8be8c3211cf7dc7d1545c8d86966687c645e4929046d65c54a4a2d4f6c9f5cd2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9d6ec746cd4a049f0668aa367091817faf0c87ed9c35840f3b548124836701c0f1ac6c0ddc99fcdcb5420e6c15e3f972eec6c869c055d464dc518049af4d242c
|
|
7
|
+
data.tar.gz: 33abcf1caabfb83b74f803affc8a12d4f74bd9290e0607d91a7033121db317229831c43da321edcf30dc3c97a080ca6b304c1186101dc17038867413ad8e802f
|
|
@@ -44,9 +44,12 @@ module Coradoc
|
|
|
44
44
|
|
|
45
45
|
# @!attribute link
|
|
46
46
|
# @return [String, nil] URL to link to when image is clicked
|
|
47
|
-
# @note Not yet wired by any transformer; reserved for future use
|
|
48
47
|
attribute :link, :string
|
|
49
48
|
|
|
49
|
+
# @!attribute role
|
|
50
|
+
# @return [String, nil] CSS role/class for the image (AsciiDoc role attr)
|
|
51
|
+
attribute :role, :string
|
|
52
|
+
|
|
50
53
|
# @!attribute inline
|
|
51
54
|
# @return [Boolean] whether this is an inline image
|
|
52
55
|
attribute :inline, :boolean, default: -> { false }
|
|
@@ -59,7 +62,7 @@ module Coradoc
|
|
|
59
62
|
private
|
|
60
63
|
|
|
61
64
|
def comparable_attributes
|
|
62
|
-
super + %i[src alt caption width height link inline]
|
|
65
|
+
super + %i[src alt caption width height link role inline]
|
|
63
66
|
end
|
|
64
67
|
end
|
|
65
68
|
end
|
data/lib/coradoc/version.rb
CHANGED