tocmd 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (47) hide show
  1. checksums.yaml +7 -0
  2. data/bin/tocmd +70 -0
  3. data/lib/mdpreview/markdown_render.rb +45 -0
  4. data/lib/mdpreview/translator.rb +237 -0
  5. data/lib/mdpreview/version.rb +3 -0
  6. data/lib/mdpreview.rb +18 -0
  7. data/test/mdptest.rb +100 -0
  8. data/vendor/cur.file +6 -0
  9. data/vendor/meta.js +1 -0
  10. data/vendor/template.html +0 -0
  11. data/vendor/toc/css/demo.css +33 -0
  12. data/vendor/toc/css/zTreeStyle/img/diy/1_close.png +0 -0
  13. data/vendor/toc/css/zTreeStyle/img/diy/1_open.png +0 -0
  14. data/vendor/toc/css/zTreeStyle/img/diy/2.png +0 -0
  15. data/vendor/toc/css/zTreeStyle/img/diy/3.png +0 -0
  16. data/vendor/toc/css/zTreeStyle/img/diy/4.png +0 -0
  17. data/vendor/toc/css/zTreeStyle/img/diy/5.png +0 -0
  18. data/vendor/toc/css/zTreeStyle/img/diy/6.png +0 -0
  19. data/vendor/toc/css/zTreeStyle/img/diy/7.png +0 -0
  20. data/vendor/toc/css/zTreeStyle/img/diy/8.png +0 -0
  21. data/vendor/toc/css/zTreeStyle/img/diy/9.png +0 -0
  22. data/vendor/toc/css/zTreeStyle/img/line_conn.gif +0 -0
  23. data/vendor/toc/css/zTreeStyle/img/loading.gif +0 -0
  24. data/vendor/toc/css/zTreeStyle/img/zTreeStandard.gif +0 -0
  25. data/vendor/toc/css/zTreeStyle/img/zTreeStandard.png +0 -0
  26. data/vendor/toc/css/zTreeStyle/zTreeStyle.css +97 -0
  27. data/vendor/toc/js/jquery-1.4.4.min.js +167 -0
  28. data/vendor/toc/js/jquery.ztree.all-3.5.js +3447 -0
  29. data/vendor/toc/js/jquery.ztree.all-3.5.min.js +157 -0
  30. data/vendor/toc/js/jquery.ztree.core-3.5.js +1644 -0
  31. data/vendor/toc/js/jquery.ztree.core-3.5.min.js +68 -0
  32. data/vendor/toc/js/jquery.ztree.excheck-3.5.js +624 -0
  33. data/vendor/toc/js/jquery.ztree.excheck-3.5.min.js +33 -0
  34. data/vendor/toc/js/jquery.ztree.exedit-3.5.js +1178 -0
  35. data/vendor/toc/js/jquery.ztree.exedit-3.5.min.js +52 -0
  36. data/vendor/toc/js/jquery.ztree.exhide-3.5.js +362 -0
  37. data/vendor/toc/js/jquery.ztree.exhide-3.5.min.js +22 -0
  38. data/vendor/toc/js/jquery.ztree_toc.js +224 -0
  39. data/vendor/toc/js/jquery.ztree_toc.min.js +4 -0
  40. data/vendor/toc/style/Clearness Dark.css +146 -0
  41. data/vendor/toc/style/Clearness.css +147 -0
  42. data/vendor/toc/style/GitHub.css +90 -0
  43. data/vendor/toc/style/GitHub2.css +297 -0
  44. data/vendor/toc/style/github-bf51422f4bb36427d391e4b75a1daa083c2d840e.css +1 -0
  45. data/vendor/toc/style/github2-d731afd4f624c99a4b19ad69f3083cd6d02b81d5.css +1 -0
  46. data/vendor/toc/style/makedownpad.css +285 -0
  47. metadata +90 -0
@@ -0,0 +1,297 @@
1
+ body {
2
+ font-family: Helvetica, arial, sans-serif;
3
+ font-size: 14px;
4
+ line-height: 1.6;
5
+ padding-top: 10px;
6
+ padding-bottom: 10px;
7
+ background-color: white;
8
+ padding: 30px; }
9
+
10
+ body > *:first-child {
11
+ margin-top: 0 !important; }
12
+ body > *:last-child {
13
+ margin-bottom: 0 !important; }
14
+
15
+ a {
16
+ color: #4183C4; }
17
+ a.absent {
18
+ color: #cc0000; }
19
+ a.anchor {
20
+ display: block;
21
+ padding-left: 30px;
22
+ margin-left: -30px;
23
+ cursor: pointer;
24
+ position: absolute;
25
+ top: 0;
26
+ left: 0;
27
+ bottom: 0; }
28
+
29
+ h1, h2, h3, h4, h5, h6 {
30
+ margin: 20px 0 10px;
31
+ padding: 0;
32
+ font-weight: bold;
33
+ -webkit-font-smoothing: antialiased;
34
+ cursor: text;
35
+ position: relative; }
36
+
37
+ h1:hover a.anchor, h2:hover a.anchor, h3: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zdGFuY2VJRD0ieG1wLmlpZDo5QzY2OUNCMDg4MEYxMUUxODU4OUQ4M0REMkFGNTBBNCIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDo5QzY2OUNCMTg4MEYxMUUxODU4OUQ4M0REMkFGNTBBNCIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PsQhXeAAAABfSURBVHjaYvz//z8DJYCRUgMYQAbAMBQIAvEqkBQWXI6sHqwHiwG70TTBxGaiWwjCTGgOUgJiF1J8wMRAIUA34B4Q76HUBelAfJYSA0CuMIEaRP8wGIkGMA54bgQIMACAmkXJi0hKJQAAAABJRU5ErkJggg==) no-repeat 10px center;
39
+ text-decoration: none; }
40
+
41
+ h1 tt, h1 code {
42
+ font-size: inherit; }
43
+
44
+ h2 tt, h2 code {
45
+ font-size: inherit; }
46
+
47
+ h3 tt, h3 code {
48
+ font-size: inherit; }
49
+
50
+ h4 tt, h4 code {
51
+ font-size: inherit; }
52
+
53
+ h5 tt, h5 code {
54
+ font-size: inherit; }
55
+
56
+ h6 tt, h6 code {
57
+ font-size: inherit; }
58
+
59
+ h1 {
60
+ font-size: 28px;
61
+ color: black; }
62
+
63
+ h2 {
64
+ font-size: 24px;
65
+ border-bottom: 1px solid #cccccc;
66
+ color: black; }
67
+
68
+ h3 {
69
+ font-size: 18px; }
70
+
71
+ h4 {
72
+ font-size: 16px; }
73
+
74
+ h5 {
75
+ font-size: 14px; }
76
+
77
+ h6 {
78
+ color: #777777;
79
+ font-size: 14px; }
80
+
81
+ p, blockquote, ul, ol, dl, li, table, pre {
82
+ margin: 15px 0; }
83
+
84
+ hr {
85
+ background: transparent url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAYAAAAECAYAAACtBE5DAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9i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sUAAAAfSURBVHjaYmRABcYwBiM2QSA4y4hNEKYDQxAEAAIMAHNGAzhkPOlYAAAAAElFTkSuQmCC) repeat-x 0 0;
86
+ border: 0 none;
87
+ color: #cccccc;
88
+ height: 4px;
89
+ padding: 0;
90
+ }
91
+
92
+ body > h2:first-child {
93
+ margin-top: 0;
94
+ padding-top: 0; }
95
+ body > h1:first-child {
96
+ margin-top: 0;
97
+ padding-top: 0; }
98
+ body > h1:first-child + h2 {
99
+ margin-top: 0;
100
+ padding-top: 0; }
101
+ body > h3:first-child, body > h4:first-child, body > h5:first-child, body > h6:first-child {
102
+ margin-top: 0;
103
+ padding-top: 0; }
104
+
105
+ a:first-child h1, a:first-child h2, a:first-child h3, a:first-child h4, a:first-child h5, a:first-child h6 {
106
+ margin-top: 0;
107
+ padding-top: 0; }
108
+
109
+ h1 p, h2 p, h3 p, h4 p, h5 p, h6 p {
110
+ margin-top: 0; }
111
+
112
+ li p.first {
113
+ display: inline-block; }
114
+ li {
115
+ margin: 0; }
116
+ ul, ol {
117
+ padding-left: 30px; }
118
+
119
+ ul :first-child, ol :first-child {
120
+ margin-top: 0; }
121
+
122
+ dl {
123
+ padding: 0; }
124
+ dl dt {
125
+ font-size: 14px;
126
+ font-weight: bold;
127
+ font-style: italic;
128
+ padding: 0;
129
+ margin: 15px 0 5px; }
130
+ dl dt:first-child {
131
+ padding: 0; }
132
+ dl dt > :first-child {
133
+ margin-top: 0; }
134
+ dl dt > :last-child {
135
+ margin-bottom: 0; }
136
+ dl dd {
137
+ margin: 0 0 15px;
138
+ padding: 0 15px; }
139
+ dl dd > :first-child {
140
+ margin-top: 0; }
141
+ dl dd > :last-child {
142
+ margin-bottom: 0; }
143
+
144
+ blockquote {
145
+ border-left: 4px solid #dddddd;
146
+ padding: 0 15px;
147
+ color: #777777; }
148
+ blockquote > :first-child {
149
+ margin-top: 0; }
150
+ blockquote > :last-child {
151
+ margin-bottom: 0; }
152
+
153
+ table {
154
+ padding: 0;border-collapse: collapse; }
155
+ table tr {
156
+ border-top: 1px solid #cccccc;
157
+ background-color: white;
158
+ margin: 0;
159
+ padding: 0; }
160
+ table tr:nth-child(2n) {
161
+ background-color: #f8f8f8; }
162
+ table tr th {
163
+ font-weight: bold;
164
+ border: 1px solid #cccccc;
165
+ margin: 0;
166
+ padding: 6px 13px; }
167
+ table tr td {
168
+ border: 1px solid #cccccc;
169
+ margin: 0;
170
+ padding: 6px 13px; }
171
+ table tr th :first-child, table tr td :first-child {
172
+ margin-top: 0; }
173
+ table tr th :last-child, table tr td :last-child {
174
+ margin-bottom: 0; }
175
+
176
+ img {
177
+ max-width: 100%; }
178
+
179
+ span.frame {
180
+ display: block;
181
+ overflow: hidden; }
182
+ span.frame > span {
183
+ border: 1px solid #dddddd;
184
+ display: block;
185
+ float: left;
186
+ overflow: hidden;
187
+ margin: 13px 0 0;
188
+ padding: 7px;
189
+ width: auto; }
190
+ span.frame span img {
191
+ display: block;
192
+ float: left; }
193
+ span.frame span span {
194
+ clear: both;
195
+ color: #333333;
196
+ display: block;
197
+ padding: 5px 0 0; }
198
+ span.align-center {
199
+ display: block;
200
+ overflow: hidden;
201
+ clear: both; }
202
+ span.align-center > span {
203
+ display: block;
204
+ overflow: hidden;
205
+ margin: 13px auto 0;
206
+ text-align: center; }
207
+ span.align-center span img {
208
+ margin: 0 auto;
209
+ text-align: center; }
210
+ span.align-right {
211
+ display: block;
212
+ overflow: hidden;
213
+ clear: both; }
214
+ span.align-right > span {
215
+ display: block;
216
+ overflow: hidden;
217
+ margin: 13px 0 0;
218
+ text-align: right; }
219
+ span.align-right span img {
220
+ margin: 0;
221
+ text-align: right; }
222
+ span.float-left {
223
+ display: block;
224
+ margin-right: 13px;
225
+ overflow: hidden;
226
+ float: left; }
227
+ span.float-left span {
228
+ margin: 13px 0 0; }
229
+ span.float-right {
230
+ display: block;
231
+ margin-left: 13px;
232
+ overflow: hidden;
233
+ float: right; }
234
+ span.float-right > span {
235
+ display: block;
236
+ overflow: hidden;
237
+ margin: 13px auto 0;
238
+ text-align: right; }
239
+
240
+ code, tt {
241
+ margin: 0 2px;
242
+ padding: 0 5px;
243
+ white-space: nowrap;
244
+ border: 1px solid #eaeaea;
245
+ background-color: #f8f8f8;
246
+ border-radius: 3px; }
247
+
248
+ pre code {
249
+ margin: 0;
250
+ padding: 0;
251
+ white-space: pre;
252
+ border: none;
253
+ background: transparent; }
254
+
255
+ .highlight pre {
256
+ background-color: #f8f8f8;
257
+ border: 1px solid #cccccc;
258
+ font-size: 13px;
259
+ line-height: 19px;
260
+ overflow: auto;
261
+ padding: 6px 10px;
262
+ border-radius: 3px; }
263
+
264
+ pre {
265
+ background-color: #f8f8f8;
266
+ border: 1px solid #cccccc;
267
+ font-size: 13px;
268
+ line-height: 19px;
269
+ overflow: auto;
270
+ padding: 6px 10px;
271
+ border-radius: 3px; }
272
+ pre code, pre tt {
273
+ background-color: transparent;
274
+ border: none; }
275
+
276
+ sup {
277
+ font-size: 0.83em;
278
+ vertical-align: super;
279
+ line-height: 0;
280
+ }
281
+ * {
282
+ -webkit-print-color-adjust: exact;
283
+ }
284
+ @media screen and (min-width: 914px) {
285
+ body {
286
+ width: 854px;
287
+ margin:0 auto;
288
+ }
289
+ }
290
+ @media print {
291
+ table, pre {
292
+ page-break-inside: avoid;
293
+ }
294
+ pre {
295
+ word-wrap: break-word;
296
+ }
297
+ }