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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 547b0c69a5d69834407e72746658ae60ba8aef42
4
- data.tar.gz: 4937b2321af83a9ea71d9ec66f4ff55c31cdd005
3
+ metadata.gz: 04adeb28321ab263b43c1eb67f43fece83e146a7
4
+ data.tar.gz: b6d92742f86bf40e08127e2bbe83147fffb9f14d
5
5
  SHA512:
6
- metadata.gz: 44eee7a43b3c6421ab8d56445b4df1b814889742015be3a453fe7eabf0a2973172147aafed0ab1001379733207a045d7f011b3e66a47f58025d6dd792e143d0f
7
- data.tar.gz: 29b12c49804886a3fe1ee069e9c57d91e9e04b388841517490f3613483681b5133f07cfd5605b2305db619e75ab1aa116abcad297c6a6be816c267e9e856c8ed
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, .highlight {
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.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-09 00:00:00.000000000 Z
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.1.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.1.0
40
+ version: 0.2.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rake
43
43
  prerelease: false