softcover 1.1.16 → 1.1.17
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/softcover/article_template/html/stylesheets/softcover.css +1 -1
- data/lib/softcover/article_template/latex_styles/softcover.sty +1 -1
- data/lib/softcover/book_template/html/stylesheets/softcover.css +1 -1
- data/lib/softcover/book_template/latex_styles/softcover.sty +1 -1
- data/lib/softcover/sanitizer.rb +3 -1
- data/lib/softcover/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e9ecd8397f7b90187f02cac5a389639ce36f5033
|
4
|
+
data.tar.gz: 76844e2a405f8ce009b7088e8561b1e4d16ad935
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a1d495c72c7279c5c76b86c76214d1f352dfbb29051078a66196e3761f9cc0917d7002056fb0a7f203f5f2a42f03f28ec4206d673965e3e863fe9b92b04f84a2
|
7
|
+
data.tar.gz: 3f13e9d907d3942ef63e752c8b7083bcfee0bbd8e2a7d1d6b2376615901ebb0530481e7db8b23698bcfa1c90fb77addb71c51f96c90e5afd1add97a26394a7a1
|
data/lib/softcover/sanitizer.rb
CHANGED
@@ -10,9 +10,11 @@ module Softcover
|
|
10
10
|
def clean(html)
|
11
11
|
return unless html
|
12
12
|
|
13
|
+
# Make a whitelist of acceptable elements and attributes.
|
13
14
|
sanitize_options = {
|
14
15
|
elements: %w{div span p a ul ol li h1 h2 h3 h4
|
15
|
-
|
16
|
+
pre em sup table tbody thead tr td img code strong
|
17
|
+
blockquote small},
|
16
18
|
remove_contents: %w{script},
|
17
19
|
attributes: {
|
18
20
|
'div' => %w{id class data-tralics-id data-number data-chapter},
|
data/lib/softcover/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: softcover
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.17
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Hartl
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-
|
12
|
+
date: 2015-11-13 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: polytexnic
|