mamemose 0.2.0.1 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.md +12 -3
- data/lib/mamemose/version.rb +1 -1
- data/lib/mamemose.rb +36 -1
- metadata +2 -2
data/README.md
CHANGED
@@ -234,7 +234,16 @@ FAQ と予想されるもの
|
|
234
234
|
- Haskell 用のは書きました [gist](https://gist.github.com/3969549)
|
235
235
|
- reStructuredText 対応して
|
236
236
|
- Python で書いてください
|
237
|
-
-
|
238
|
-
-
|
237
|
+
- 表、テーブル、 table を書きたいんだけど
|
238
|
+
- **実は書けました。** 以下のようにします。
|
239
|
+
|
240
|
+
```
|
241
|
+
Name | Age
|
242
|
+
--------|------
|
243
|
+
Fred | 29
|
244
|
+
Jim | 47
|
245
|
+
Harry | 32
|
246
|
+
```
|
247
|
+
|
239
248
|
- 定義リストを書きたいんだけど
|
240
|
-
-
|
249
|
+
- 無理らしいです。 HTML 直接書いてください。
|
data/lib/mamemose/version.rb
CHANGED
data/lib/mamemose.rb
CHANGED
@@ -169,6 +169,40 @@ hr {
|
|
169
169
|
border: none;
|
170
170
|
border-top: 1px solid black;
|
171
171
|
}
|
172
|
+
table {
|
173
|
+
padding: 0;
|
174
|
+
margin: 1em 2em;
|
175
|
+
border-spacing: 0;
|
176
|
+
border-collapse: collapse;
|
177
|
+
}
|
178
|
+
table tr {
|
179
|
+
border-top: 1px solid #cccccc;
|
180
|
+
background-color: white;
|
181
|
+
margin: 0;
|
182
|
+
padding: 0;
|
183
|
+
}
|
184
|
+
table tr:nth-child(2n) {
|
185
|
+
background-color: #f8f8f8;
|
186
|
+
}
|
187
|
+
table tr th {
|
188
|
+
font-weight: bold;
|
189
|
+
border: 1px solid #cccccc;
|
190
|
+
text-align: left;
|
191
|
+
margin: 0;
|
192
|
+
padding: 6px 13px;
|
193
|
+
}
|
194
|
+
table tr td {
|
195
|
+
border: 1px solid #cccccc;
|
196
|
+
text-align: left;
|
197
|
+
margin: 0;
|
198
|
+
padding: 6px 13px;
|
199
|
+
}
|
200
|
+
table tr th :first-child, table tr td :first-child {
|
201
|
+
margin-top: 0;
|
202
|
+
}
|
203
|
+
table tr th :last-child, table tr td :last-child {
|
204
|
+
margin-bottom: 0;
|
205
|
+
}
|
172
206
|
--></style>
|
173
207
|
<script>
|
174
208
|
function copy(text) {
|
@@ -422,7 +456,8 @@ HTML
|
|
422
456
|
markdown = Redcarpet::Markdown.new(HTMLwithSyntaxHighlighter,
|
423
457
|
{:strikethrough => true,
|
424
458
|
:autolink => true,
|
425
|
-
:fenced_code_blocks => true
|
459
|
+
:fenced_code_blocks => true,
|
460
|
+
:tables => true})
|
426
461
|
markdown.render(text)
|
427
462
|
end
|
428
463
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mamemose
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-12-
|
12
|
+
date: 2012-12-24 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: redcarpet
|