escapement 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/escapement/tag.rb +4 -1
- data/lib/escapement/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: feef749452a510c1296df57f1fa902b907489336
|
4
|
+
data.tar.gz: 684d25eadfb7c027d7e4dca2cbfa3de6b43aff69
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ee53837345b1036e2fbc59812ea9ce9da1452be529482c828dc97e103b929dc899faf9ba1809fbdcd5c8aa748679e371f72096c06fcd9d1975d00cdeaf30b914
|
7
|
+
data.tar.gz: 5a039a1d8f1233e2f4738219034070b9af451545d7b42596ef7e06040ba00f51ca7df2d2631af1dcfdef101894621de5f4418e9f4a00a222fd094f4d94b9ae19
|
data/lib/escapement/tag.rb
CHANGED
@@ -20,7 +20,7 @@ module Escapement
|
|
20
20
|
position: [@current_position, @current_position + node.text.length],
|
21
21
|
attributes: Hash[filtered_attributes.map { |k, v| [k, v.value] }]
|
22
22
|
}
|
23
|
-
|
23
|
+
|
24
24
|
process_children
|
25
25
|
end
|
26
26
|
|
@@ -38,6 +38,9 @@ module Escapement
|
|
38
38
|
when 'pre' then 'preformatted'
|
39
39
|
when 'img' then 'image'
|
40
40
|
when 'li' then 'list_item'
|
41
|
+
when 'sup' then 'superscript'
|
42
|
+
when 'sub' then 'subscript'
|
43
|
+
when 'br' then 'line_break'
|
41
44
|
when /h\d/ then 'header'
|
42
45
|
else node.name
|
43
46
|
end
|
data/lib/escapement/version.rb
CHANGED