anatomy 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/anatomy/base.ay +4 -1
- data/public/anatomy.css +11 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 04adeb28321ab263b43c1eb67f43fece83e146a7
|
4
|
+
data.tar.gz: b6d92742f86bf40e08127e2bbe83147fffb9f14d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d6ec0e90761749dd11544265cd31fe79a77b50da171423cc9e3b1701739023f4f2d6d9b60560d1085da1d1fccba9a555c2424eb4e961a0dc955d730bfedac268
|
7
|
+
data.tar.gz: 00c982dcf41ee290f8443dfac29839492c907fce11d03ca6537ca787cef0f30f9117b4aee45a57bb059da9a258377dbe852a2c84c463f72132cb97c601e0a995
|
data/lib/anatomy/base.ay
CHANGED
@@ -133,8 +133,11 @@ fn(format-block(tokens, link-only = nil)):
|
|
133
133
|
verbatim(format-inline(tokens, link-only))
|
134
134
|
.class("highlight"))
|
135
135
|
|
136
|
+
fn(collect-content(s & String)): s
|
137
|
+
fn(collect-content(ss & Array)): ss collect [s]: collect-content(s); join
|
138
|
+
|
136
139
|
def(codeblock(language, content)):
|
137
|
-
format-block(hl load(language) new(content) run) rescue:
|
140
|
+
format-block(hl load(language) new(collect-content(content)) run) rescue:
|
138
141
|
LoadError:
|
139
142
|
warning(.unknown-language(language))
|
140
143
|
verbatim(content)
|
data/public/anatomy.css
CHANGED
@@ -216,10 +216,20 @@ div.search:hover {
|
|
216
216
|
background: #fff0f0;
|
217
217
|
}
|
218
218
|
|
219
|
-
.verbatim, .interaction
|
219
|
+
.verbatim, .interaction {
|
220
220
|
margin: 0 1em 1em;
|
221
221
|
}
|
222
222
|
|
223
|
+
.highlight {
|
224
|
+
background: #fbfbfb;
|
225
|
+
padding: 1em;
|
226
|
+
margin: 0 1em;
|
227
|
+
}
|
228
|
+
|
229
|
+
.highlight .verbatim {
|
230
|
+
margin: 0;
|
231
|
+
}
|
232
|
+
|
223
233
|
.interaction pre {
|
224
234
|
overflow-x: auto;
|
225
235
|
}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: anatomy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alex Suraci
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-07-
|
11
|
+
date: 2015-07-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: atomy
|
@@ -31,13 +31,13 @@ dependencies:
|
|
31
31
|
requirements:
|
32
32
|
- - "~>"
|
33
33
|
- !ruby/object:Gem::Version
|
34
|
-
version: 0.
|
34
|
+
version: 0.2.0
|
35
35
|
type: :runtime
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 0.
|
40
|
+
version: 0.2.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rake
|
43
43
|
prerelease: false
|