softcover 0.7.2 → 0.7.3
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6ce513334c4adcf117e5032746189b82b381d78a
|
4
|
+
data.tar.gz: 38c1806030b94ace0b42e8ae6c8043f9447ac9b3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fa051925adb46e6a9bf837d3769f846c99107231e028eb5ccf5ca17b6399f4344153553e79c379a0c013c600ed81692be71e58d4d197fe6fc8bfccef4f8cc278
|
7
|
+
data.tar.gz: 93da1d391cea203e908b176951166ce6ffd2e7a9569c2618d9237297fb09d905d314666f814f6174704701cd9524fa619cac059f6bbe9b31df55ff5fb9efffa9
|
data/lib/softcover/mathjax.rb
CHANGED
@@ -4,6 +4,8 @@ module Softcover
|
|
4
4
|
# Returns the MathJax configuration.
|
5
5
|
def self.config(options = {})
|
6
6
|
chapter_number = if options[:chapter_number]
|
7
|
+
# Call .inspect.inspect to escape the chapter number
|
8
|
+
# code for interpolation.
|
7
9
|
options[:chapter_number].inspect.inspect
|
8
10
|
else
|
9
11
|
'#{chapter_number}'
|
data/lib/softcover/sanitizer.rb
CHANGED
@@ -12,22 +12,23 @@ module Softcover
|
|
12
12
|
|
13
13
|
sanitize_options = {
|
14
14
|
elements: %w{div span p a ul ol li h1 h2 h3 h4
|
15
|
-
pre em sup table tbody thead tr td img},
|
15
|
+
pre em sup table tbody thead tr td img code},
|
16
16
|
remove_contents: %w{script},
|
17
17
|
attributes: {
|
18
18
|
'div' => %w{id class data-tralics-id data-number data-chapter},
|
19
|
-
'a'
|
20
|
-
'span'=> %w{id class style},
|
21
|
-
'ol'
|
22
|
-
'ul'
|
23
|
-
'li'
|
24
|
-
'sup'
|
25
|
-
'h1'
|
26
|
-
'h2'
|
27
|
-
'h3'
|
28
|
-
'h4'
|
29
|
-
'img'
|
30
|
-
'em'
|
19
|
+
'a' => %w{id class href},
|
20
|
+
'span' => %w{id class style},
|
21
|
+
'ol' => %w{id class},
|
22
|
+
'ul' => %w{id class},
|
23
|
+
'li' => %w{id class},
|
24
|
+
'sup' => %w{id class},
|
25
|
+
'h1' => %w{id class},
|
26
|
+
'h2' => %w{id class},
|
27
|
+
'h3' => %w{id class},
|
28
|
+
'h4' => %w{id class},
|
29
|
+
'img' => %w{id class src alt},
|
30
|
+
'em' => %w{id class},
|
31
|
+
'code' => %w{id class}
|
31
32
|
},
|
32
33
|
protocols: {
|
33
34
|
'a' => {'href' => [:relative, 'http', 'https', 'mailto']},
|
@@ -193,6 +193,8 @@ body #book {
|
|
193
193
|
}
|
194
194
|
|
195
195
|
#book .caption {
|
196
|
+
font-size: 0.85em;
|
197
|
+
font-style: italic;
|
196
198
|
text-align: center;
|
197
199
|
margin-bottom: 3em;
|
198
200
|
margin-top: 1em;
|
@@ -273,7 +275,7 @@ body #book {
|
|
273
275
|
|
274
276
|
#book .footnotes {
|
275
277
|
border-top: 1px solid black;
|
276
|
-
margin-top:
|
278
|
+
margin-top: 5em;
|
277
279
|
font-size: 90%;
|
278
280
|
}
|
279
281
|
|
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: 0.7.
|
4
|
+
version: 0.7.3
|
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: 2013-12-
|
12
|
+
date: 2013-12-05 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: polytexnic
|
@@ -1029,7 +1029,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
1029
1029
|
version: '0'
|
1030
1030
|
requirements: []
|
1031
1031
|
rubyforge_project:
|
1032
|
-
rubygems_version: 2.0.
|
1032
|
+
rubygems_version: 2.0.14
|
1033
1033
|
signing_key:
|
1034
1034
|
specification_version: 4
|
1035
1035
|
summary: A typesetting system for technical authors
|