lwe_slate_serializer 1.0.6 → 1.0.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/slate_serializer/html.rb +2 -2
- data/lib/slate_serializer/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: 357ee78ae9c5e22655caebfce304878620477033d63f13a75923a8509dfb6f67
|
4
|
+
data.tar.gz: 03f957e81cea5001d40ab05316bee3910509acd5c5c9e396627d370f0782676b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ec50813c392a9fc2cc0acfd6063f3346c10512b364e7b7000ba351d654bca283c8c45638a82f8d95e0ffc72e6fd630dcf91a93873774b1e462ea6640ee690c10
|
7
|
+
data.tar.gz: c3e120dc1585c020715a4bc1392f0b4aba0c57d51908898d8ccc28f3fb8122fa1442fa108c4e16b89e9506cf7bea8e233112a07576e2771295f8b389ae56aac7
|
@@ -139,10 +139,10 @@ module SlateSerializer
|
|
139
139
|
|
140
140
|
def element_to_node(element, marks = [])
|
141
141
|
handler = @element_register[element.name]
|
142
|
-
marks = [*marks, handler
|
142
|
+
marks = [*marks, handler&.mark].compact
|
143
143
|
|
144
144
|
children = element.children.flat_map do |child|
|
145
|
-
if handler
|
145
|
+
if handler&.mark
|
146
146
|
element_to_text(child, marks)
|
147
147
|
elsif child.text?
|
148
148
|
next if child.text.strip == ''
|