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,285 @@
1
+
2
+ /* GitHub stylesheet for MarkdownPad (http://markdownpad.com) */
3
+ /* Author: Nicolas Hery - http://nicolashery.com */
4
+ /* Version: b13fe65ca28d2e568c6ed5d7f06581183df8f2ff */
5
+ /* Source: https://github.com/nicolahery/markdownpad-github */
6
+
7
+ /* RESET
8
+ =============================================================================*/
9
+
10
+ html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
11
+ margin: 0;
12
+ padding: 0;
13
+ border: 0;
14
+ }
15
+
16
+ /* BODY
17
+ =============================================================================*/
18
+
19
+ body {
20
+ font-family: Helvetica, arial, freesans, clean, sans-serif;
21
+ font-size: 14px;
22
+ line-height: 1.6;
23
+ color: #333;
24
+ background-color: #fff;
25
+ padding: 20px;
26
+ max-width: 960px;
27
+ margin: 0 auto;
28
+ }
29
+
30
+ body>*:first-child {
31
+ margin-top: 0 !important;
32
+ }
33
+
34
+ body>*:last-child {
35
+ margin-bottom: 0 !important;
36
+ }
37
+
38
+ /* BLOCKS
39
+ =============================================================================*/
40
+
41
+ p, blockquote, ul, ol, dl, table, pre {
42
+ margin: 15px 0;
43
+ }
44
+
45
+ /* HEADERS
46
+ =============================================================================*/
47
+
48
+ h1, h2, h3, h4, h5, h6 {
49
+ margin: 20px 0 10px;
50
+ padding: 0;
51
+ font-weight: bold;
52
+ -webkit-font-smoothing: antialiased;
53
+ }
54
+
55
+ h1 tt, h1 code, h2 tt, h2 code, h3 tt, h3 code, h4 tt, h4 code, h5 tt, h5 code, h6 tt, h6 code {
56
+ font-size: inherit;
57
+ }
58
+
59
+ h1 {
60
+ font-size: 28px;
61
+ color: #000;
62
+ }
63
+
64
+ h2 {
65
+ font-size: 24px;
66
+ border-bottom: 1px solid #ccc;
67
+ color: #000;
68
+ }
69
+
70
+ h3 {
71
+ font-size: 18px;
72
+ }
73
+
74
+ h4 {
75
+ font-size: 16px;
76
+ }
77
+
78
+ h5 {
79
+ font-size: 14px;
80
+ }
81
+
82
+ h6 {
83
+ color: #777;
84
+ font-size: 14px;
85
+ }
86
+
87
+ body>h2:first-child, body>h1:first-child, body>h1:first-child+h2, body>h3:first-child, body>h4:first-child, body>h5:first-child, body>h6:first-child {
88
+ margin-top: 0;
89
+ padding-top: 0;
90
+ }
91
+
92
+ a:first-child h1, a:first-child h2, a:first-child h3, a:first-child h4, a:first-child h5, a:first-child h6 {
93
+ margin-top: 0;
94
+ padding-top: 0;
95
+ }
96
+
97
+ h1+p, h2+p, h3+p, h4+p, h5+p, h6+p {
98
+ margin-top: 10px;
99
+ }
100
+
101
+ /* LINKS
102
+ =============================================================================*/
103
+
104
+ a {
105
+ color: #4183C4;
106
+ text-decoration: none;
107
+ }
108
+
109
+ a:hover {
110
+ text-decoration: underline;
111
+ }
112
+
113
+ /* LISTS
114
+ =============================================================================*/
115
+
116
+ ul, ol {
117
+ padding-left: 30px;
118
+ }
119
+
120
+ ul li > :first-child,
121
+ ol li > :first-child,
122
+ ul li ul:first-of-type,
123
+ ol li ol:first-of-type,
124
+ ul li ol:first-of-type,
125
+ ol li ul:first-of-type {
126
+ margin-top: 0px;
127
+ }
128
+
129
+ ul ul, ul ol, ol ol, ol ul {
130
+ margin-bottom: 0;
131
+ }
132
+
133
+ dl {
134
+ padding: 0;
135
+ }
136
+
137
+ dl dt {
138
+ font-size: 14px;
139
+ font-weight: bold;
140
+ font-style: italic;
141
+ padding: 0;
142
+ margin: 15px 0 5px;
143
+ }
144
+
145
+ dl dt:first-child {
146
+ padding: 0;
147
+ }
148
+
149
+ dl dt>:first-child {
150
+ margin-top: 0px;
151
+ }
152
+
153
+ dl dt>:last-child {
154
+ margin-bottom: 0px;
155
+ }
156
+
157
+ dl dd {
158
+ margin: 0 0 15px;
159
+ padding: 0 15px;
160
+ }
161
+
162
+ dl dd>:first-child {
163
+ margin-top: 0px;
164
+ }
165
+
166
+ dl dd>:last-child {
167
+ margin-bottom: 0px;
168
+ }
169
+
170
+ /* CODE
171
+ =============================================================================*/
172
+
173
+ pre, code, tt {
174
+ font-size: 12px;
175
+ font-family: Consolas, "Liberation Mono", Courier, monospace;
176
+ }
177
+
178
+ code, tt {
179
+ margin: 0 0px;
180
+ padding: 0px 0px;
181
+ white-space: nowrap;
182
+ border: 1px solid #eaeaea;
183
+ background-color: #f8f8f8;
184
+ border-radius: 3px;
185
+ }
186
+
187
+ pre>code {
188
+ margin: 0;
189
+ padding: 0;
190
+ white-space: pre;
191
+ border: none;
192
+ background: transparent;
193
+ }
194
+
195
+ pre {
196
+ background-color: #f8f8f8;
197
+ border: 1px solid #ccc;
198
+ font-size: 13px;
199
+ line-height: 19px;
200
+ overflow: auto;
201
+ padding: 6px 10px;
202
+ border-radius: 3px;
203
+ }
204
+
205
+ pre code, pre tt {
206
+ background-color: transparent;
207
+ border: none;
208
+ }
209
+
210
+ kbd {
211
+ -moz-border-bottom-colors: none;
212
+ -moz-border-left-colors: none;
213
+ -moz-border-right-colors: none;
214
+ -moz-border-top-colors: none;
215
+ background-color: #DDDDDD;
216
+ background-image: linear-gradient(#F1F1F1, #DDDDDD);
217
+ background-repeat: repeat-x;
218
+ border-color: #DDDDDD #CCCCCC #CCCCCC #DDDDDD;
219
+ border-image: none;
220
+ border-radius: 2px 2px 2px 2px;
221
+ border-style: solid;
222
+ border-width: 1px;
223
+ font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
224
+ line-height: 10px;
225
+ padding: 1px 4px;
226
+ }
227
+
228
+ /* QUOTES
229
+ =============================================================================*/
230
+
231
+ blockquote {
232
+ border-left: 4px solid #DDD;
233
+ padding: 0 15px;
234
+ color: #777;
235
+ }
236
+
237
+ blockquote>:first-child {
238
+ margin-top: 0px;
239
+ }
240
+
241
+ blockquote>:last-child {
242
+ margin-bottom: 0px;
243
+ }
244
+
245
+ /* HORIZONTAL RULES
246
+ =============================================================================*/
247
+
248
+ hr {
249
+ clear: both;
250
+ margin: 15px 0;
251
+ height: 0px;
252
+ overflow: hidden;
253
+ border: none;
254
+ background: transparent;
255
+ border-bottom: 4px solid #ddd;
256
+ padding: 0;
257
+ }
258
+
259
+ /* TABLES
260
+ =============================================================================*/
261
+
262
+ table th {
263
+ font-weight: bold;
264
+ }
265
+
266
+ table th, table td {
267
+ border: 1px solid #ccc;
268
+ padding: 6px 13px;
269
+ }
270
+
271
+ table tr {
272
+ border-top: 1px solid #ccc;
273
+ background-color: #fff;
274
+ }
275
+
276
+ table tr:nth-child(2n) {
277
+ background-color: #f8f8f8;
278
+ }
279
+
280
+ /* IMAGES
281
+ =============================================================================*/
282
+
283
+ img {
284
+ max-width: 100%
285
+ }
metadata ADDED
@@ -0,0 +1,90 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: tocmd
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.5
5
+ platform: ruby
6
+ authors:
7
+ - shiren1118
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-01-27 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: convert markdown to html with toc plugin
14
+ email:
15
+ - shiren1118@126.com
16
+ executables:
17
+ - tocmd
18
+ extensions: []
19
+ extra_rdoc_files: []
20
+ files:
21
+ - bin/tocmd
22
+ - lib/mdpreview.rb
23
+ - lib/mdpreview/markdown_render.rb
24
+ - lib/mdpreview/translator.rb
25
+ - lib/mdpreview/version.rb
26
+ - test/mdptest.rb
27
+ - vendor/cur.file
28
+ - vendor/meta.js
29
+ - vendor/template.html
30
+ - vendor/toc/css/demo.css
31
+ - vendor/toc/css/zTreeStyle/img/diy/1_close.png
32
+ - vendor/toc/css/zTreeStyle/img/diy/1_open.png
33
+ - vendor/toc/css/zTreeStyle/img/diy/2.png
34
+ - vendor/toc/css/zTreeStyle/img/diy/3.png
35
+ - vendor/toc/css/zTreeStyle/img/diy/4.png
36
+ - vendor/toc/css/zTreeStyle/img/diy/5.png
37
+ - vendor/toc/css/zTreeStyle/img/diy/6.png
38
+ - vendor/toc/css/zTreeStyle/img/diy/7.png
39
+ - vendor/toc/css/zTreeStyle/img/diy/8.png
40
+ - vendor/toc/css/zTreeStyle/img/diy/9.png
41
+ - vendor/toc/css/zTreeStyle/img/line_conn.gif
42
+ - vendor/toc/css/zTreeStyle/img/loading.gif
43
+ - vendor/toc/css/zTreeStyle/img/zTreeStandard.gif
44
+ - vendor/toc/css/zTreeStyle/img/zTreeStandard.png
45
+ - vendor/toc/css/zTreeStyle/zTreeStyle.css
46
+ - vendor/toc/js/jquery-1.4.4.min.js
47
+ - vendor/toc/js/jquery.ztree.all-3.5.js
48
+ - vendor/toc/js/jquery.ztree.all-3.5.min.js
49
+ - vendor/toc/js/jquery.ztree.core-3.5.js
50
+ - vendor/toc/js/jquery.ztree.core-3.5.min.js
51
+ - vendor/toc/js/jquery.ztree.excheck-3.5.js
52
+ - vendor/toc/js/jquery.ztree.excheck-3.5.min.js
53
+ - vendor/toc/js/jquery.ztree.exedit-3.5.js
54
+ - vendor/toc/js/jquery.ztree.exedit-3.5.min.js
55
+ - vendor/toc/js/jquery.ztree.exhide-3.5.js
56
+ - vendor/toc/js/jquery.ztree.exhide-3.5.min.js
57
+ - vendor/toc/js/jquery.ztree_toc.js
58
+ - vendor/toc/js/jquery.ztree_toc.min.js
59
+ - vendor/toc/style/Clearness Dark.css
60
+ - vendor/toc/style/Clearness.css
61
+ - vendor/toc/style/GitHub.css
62
+ - vendor/toc/style/GitHub2.css
63
+ - vendor/toc/style/github-bf51422f4bb36427d391e4b75a1daa083c2d840e.css
64
+ - vendor/toc/style/github2-d731afd4f624c99a4b19ad69f3083cd6d02b81d5.css
65
+ - vendor/toc/style/makedownpad.css
66
+ homepage: ''
67
+ licenses: []
68
+ metadata: {}
69
+ post_install_message:
70
+ rdoc_options: []
71
+ require_paths:
72
+ - lib
73
+ required_ruby_version: !ruby/object:Gem::Requirement
74
+ requirements:
75
+ - - ">="
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
78
+ required_rubygems_version: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ requirements: []
84
+ rubyforge_project:
85
+ rubygems_version: 2.2.0
86
+ signing_key:
87
+ specification_version: 4
88
+ summary: convert markdown to html with toc plugin
89
+ test_files:
90
+ - test/mdptest.rb