kramdown 0.1.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of kramdown might be problematic. Click here for more details.

Files changed (201) hide show
  1. data/AUTHORS +1 -0
  2. data/COPYING +24 -0
  3. data/ChangeLog +1416 -0
  4. data/GPL +674 -0
  5. data/README +20 -0
  6. data/Rakefile +300 -0
  7. data/VERSION +1 -0
  8. data/benchmark/benchmark.rb +33 -0
  9. data/benchmark/mdbasics.text +306 -0
  10. data/benchmark/mdsyntax.text +888 -0
  11. data/benchmark/testing.sh +9 -0
  12. data/benchmark/timing.sh +10 -0
  13. data/bin/kramdown +26 -0
  14. data/doc/default.css +293 -0
  15. data/doc/default.template +78 -0
  16. data/doc/index.page +89 -0
  17. data/doc/installation.page +90 -0
  18. data/doc/news.feed +10 -0
  19. data/doc/news.page +27 -0
  20. data/doc/quickref.page +474 -0
  21. data/doc/syntax.page +1089 -0
  22. data/doc/tests.page +44 -0
  23. data/doc/virtual +2 -0
  24. data/lib/kramdown.rb +23 -0
  25. data/lib/kramdown/converter.rb +215 -0
  26. data/lib/kramdown/document.rb +150 -0
  27. data/lib/kramdown/error.rb +27 -0
  28. data/lib/kramdown/extension.rb +73 -0
  29. data/lib/kramdown/parser.rb +1056 -0
  30. data/lib/kramdown/parser/registry.rb +62 -0
  31. data/setup.rb +1585 -0
  32. data/test/run_tests.rb +58 -0
  33. data/test/test_files.rb +39 -0
  34. data/test/testcases/block/01_blank_line/spaces.html +1 -0
  35. data/test/testcases/block/01_blank_line/spaces.text +3 -0
  36. data/test/testcases/block/01_blank_line/tabs.html +1 -0
  37. data/test/testcases/block/01_blank_line/tabs.text +6 -0
  38. data/test/testcases/block/02_eob/beginning.html +1 -0
  39. data/test/testcases/block/02_eob/beginning.text +3 -0
  40. data/test/testcases/block/02_eob/end.html +1 -0
  41. data/test/testcases/block/02_eob/end.text +3 -0
  42. data/test/testcases/block/02_eob/middle.html +1 -0
  43. data/test/testcases/block/02_eob/middle.text +5 -0
  44. data/test/testcases/block/03_paragraph/indented.html +18 -0
  45. data/test/testcases/block/03_paragraph/indented.text +19 -0
  46. data/test/testcases/block/03_paragraph/no_newline_at_end.html +5 -0
  47. data/test/testcases/block/03_paragraph/no_newline_at_end.text +5 -0
  48. data/test/testcases/block/03_paragraph/one_para.html +1 -0
  49. data/test/testcases/block/03_paragraph/one_para.text +1 -0
  50. data/test/testcases/block/03_paragraph/two_para.html +4 -0
  51. data/test/testcases/block/03_paragraph/two_para.text +4 -0
  52. data/test/testcases/block/04_header/atx_header.html +26 -0
  53. data/test/testcases/block/04_header/atx_header.text +24 -0
  54. data/test/testcases/block/04_header/atx_header_no_newline_at_end.html +1 -0
  55. data/test/testcases/block/04_header/atx_header_no_newline_at_end.text +1 -0
  56. data/test/testcases/block/04_header/setext_header.html +25 -0
  57. data/test/testcases/block/04_header/setext_header.text +27 -0
  58. data/test/testcases/block/04_header/setext_header_no_newline_at_end.html +1 -0
  59. data/test/testcases/block/04_header/setext_header_no_newline_at_end.text +2 -0
  60. data/test/testcases/block/04_header/with_auto_ids.html +17 -0
  61. data/test/testcases/block/04_header/with_auto_ids.options +1 -0
  62. data/test/testcases/block/04_header/with_auto_ids.text +19 -0
  63. data/test/testcases/block/05_blockquote/indented.html +25 -0
  64. data/test/testcases/block/05_blockquote/indented.text +14 -0
  65. data/test/testcases/block/05_blockquote/nested.html +9 -0
  66. data/test/testcases/block/05_blockquote/nested.text +5 -0
  67. data/test/testcases/block/05_blockquote/no_newline_at_end.html +4 -0
  68. data/test/testcases/block/05_blockquote/no_newline_at_end.text +2 -0
  69. data/test/testcases/block/05_blockquote/only_first_quoted.html +8 -0
  70. data/test/testcases/block/05_blockquote/only_first_quoted.text +4 -0
  71. data/test/testcases/block/05_blockquote/with_code_blocks.html +15 -0
  72. data/test/testcases/block/05_blockquote/with_code_blocks.text +11 -0
  73. data/test/testcases/block/06_codeblock/error.html +4 -0
  74. data/test/testcases/block/06_codeblock/error.text +4 -0
  75. data/test/testcases/block/06_codeblock/no_newline_at_end.html +2 -0
  76. data/test/testcases/block/06_codeblock/no_newline_at_end.text +1 -0
  77. data/test/testcases/block/06_codeblock/normal.html +13 -0
  78. data/test/testcases/block/06_codeblock/normal.text +10 -0
  79. data/test/testcases/block/06_codeblock/tilde_syntax.html +7 -0
  80. data/test/testcases/block/06_codeblock/tilde_syntax.text +9 -0
  81. data/test/testcases/block/06_codeblock/whitespace.html +3 -0
  82. data/test/testcases/block/06_codeblock/whitespace.text +3 -0
  83. data/test/testcases/block/06_codeblock/with_blank_line.html +13 -0
  84. data/test/testcases/block/06_codeblock/with_blank_line.text +11 -0
  85. data/test/testcases/block/06_codeblock/with_eob_marker.html +6 -0
  86. data/test/testcases/block/06_codeblock/with_eob_marker.text +5 -0
  87. data/test/testcases/block/07_horizontal_rule/error.html +7 -0
  88. data/test/testcases/block/07_horizontal_rule/error.text +7 -0
  89. data/test/testcases/block/07_horizontal_rule/normal.html +19 -0
  90. data/test/testcases/block/07_horizontal_rule/normal.text +19 -0
  91. data/test/testcases/block/08_list/escaping.html +17 -0
  92. data/test/testcases/block/08_list/escaping.text +17 -0
  93. data/test/testcases/block/08_list/list_and_hr.html +9 -0
  94. data/test/testcases/block/08_list/list_and_hr.text +5 -0
  95. data/test/testcases/block/08_list/list_and_others.html +38 -0
  96. data/test/testcases/block/08_list/list_and_others.text +25 -0
  97. data/test/testcases/block/08_list/mixed.html +111 -0
  98. data/test/testcases/block/08_list/mixed.text +66 -0
  99. data/test/testcases/block/08_list/nested.html +17 -0
  100. data/test/testcases/block/08_list/nested.text +7 -0
  101. data/test/testcases/block/08_list/other_first_element.html +39 -0
  102. data/test/testcases/block/08_list/other_first_element.text +18 -0
  103. data/test/testcases/block/08_list/simple_ol.html +19 -0
  104. data/test/testcases/block/08_list/simple_ol.text +13 -0
  105. data/test/testcases/block/08_list/simple_ul.html +61 -0
  106. data/test/testcases/block/08_list/simple_ul.text +43 -0
  107. data/test/testcases/block/08_list/single_item.html +3 -0
  108. data/test/testcases/block/08_list/single_item.text +1 -0
  109. data/test/testcases/block/08_list/special_cases.html +29 -0
  110. data/test/testcases/block/08_list/special_cases.text +19 -0
  111. data/test/testcases/block/09_html/auto_parse_block_html.html +17 -0
  112. data/test/testcases/block/09_html/auto_parse_block_html.options +1 -0
  113. data/test/testcases/block/09_html/auto_parse_block_html.text +14 -0
  114. data/test/testcases/block/09_html/comment.html +12 -0
  115. data/test/testcases/block/09_html/comment.text +12 -0
  116. data/test/testcases/block/09_html/filtered_html.html +1 -0
  117. data/test/testcases/block/09_html/filtered_html.options +1 -0
  118. data/test/testcases/block/09_html/filtered_html.text +1 -0
  119. data/test/testcases/block/09_html/html_and_codeblocks.html +15 -0
  120. data/test/testcases/block/09_html/html_and_codeblocks.options +1 -0
  121. data/test/testcases/block/09_html/html_and_codeblocks.text +13 -0
  122. data/test/testcases/block/09_html/invalid_html_1.html +5 -0
  123. data/test/testcases/block/09_html/invalid_html_1.text +5 -0
  124. data/test/testcases/block/09_html/invalid_html_2.html +6 -0
  125. data/test/testcases/block/09_html/invalid_html_2.text +5 -0
  126. data/test/testcases/block/09_html/parse_as_raw.html +26 -0
  127. data/test/testcases/block/09_html/parse_as_raw.text +16 -0
  128. data/test/testcases/block/09_html/parse_as_span.html +12 -0
  129. data/test/testcases/block/09_html/parse_as_span.text +7 -0
  130. data/test/testcases/block/09_html/processing_instruction.html +12 -0
  131. data/test/testcases/block/09_html/processing_instruction.text +12 -0
  132. data/test/testcases/block/09_html/simple.html +78 -0
  133. data/test/testcases/block/09_html/simple.text +56 -0
  134. data/test/testcases/block/10_ald/simple.html +2 -0
  135. data/test/testcases/block/10_ald/simple.text +8 -0
  136. data/test/testcases/block/11_ial/simple.html +17 -0
  137. data/test/testcases/block/11_ial/simple.text +25 -0
  138. data/test/testcases/block/12_extension/comment.html +5 -0
  139. data/test/testcases/block/12_extension/comment.text +11 -0
  140. data/test/testcases/block/12_extension/ignored.html +6 -0
  141. data/test/testcases/block/12_extension/ignored.text +11 -0
  142. data/test/testcases/block/12_extension/kdoptions.html +15 -0
  143. data/test/testcases/block/12_extension/kdoptions.text +18 -0
  144. data/test/testcases/block/12_extension/kdoptions2.html +10 -0
  145. data/test/testcases/block/12_extension/kdoptions2.text +5 -0
  146. data/test/testcases/block/12_extension/nokramdown.html +6 -0
  147. data/test/testcases/block/12_extension/nokramdown.text +11 -0
  148. data/test/testcases/span/01_link/empty.html +3 -0
  149. data/test/testcases/span/01_link/empty.text +3 -0
  150. data/test/testcases/span/01_link/image_in_a.html +5 -0
  151. data/test/testcases/span/01_link/image_in_a.text +5 -0
  152. data/test/testcases/span/01_link/imagelinks.html +12 -0
  153. data/test/testcases/span/01_link/imagelinks.text +14 -0
  154. data/test/testcases/span/01_link/inline.html +40 -0
  155. data/test/testcases/span/01_link/inline.text +42 -0
  156. data/test/testcases/span/01_link/link_defs.html +8 -0
  157. data/test/testcases/span/01_link/link_defs.text +22 -0
  158. data/test/testcases/span/01_link/links_with_angle_brackets.html +3 -0
  159. data/test/testcases/span/01_link/links_with_angle_brackets.text +3 -0
  160. data/test/testcases/span/01_link/reference.html +32 -0
  161. data/test/testcases/span/01_link/reference.text +42 -0
  162. data/test/testcases/span/02_emphasis/empty.html +3 -0
  163. data/test/testcases/span/02_emphasis/empty.text +3 -0
  164. data/test/testcases/span/02_emphasis/errors.html +9 -0
  165. data/test/testcases/span/02_emphasis/errors.text +9 -0
  166. data/test/testcases/span/02_emphasis/nesting.html +34 -0
  167. data/test/testcases/span/02_emphasis/nesting.text +30 -0
  168. data/test/testcases/span/02_emphasis/normal.html +42 -0
  169. data/test/testcases/span/02_emphasis/normal.text +42 -0
  170. data/test/testcases/span/03_codespan/empty.html +5 -0
  171. data/test/testcases/span/03_codespan/empty.text +5 -0
  172. data/test/testcases/span/03_codespan/errors.html +1 -0
  173. data/test/testcases/span/03_codespan/errors.text +1 -0
  174. data/test/testcases/span/03_codespan/normal.html +16 -0
  175. data/test/testcases/span/03_codespan/normal.text +16 -0
  176. data/test/testcases/span/04_footnote/definitions.html +14 -0
  177. data/test/testcases/span/04_footnote/definitions.text +18 -0
  178. data/test/testcases/span/04_footnote/footnote_nr.html +12 -0
  179. data/test/testcases/span/04_footnote/footnote_nr.options +1 -0
  180. data/test/testcases/span/04_footnote/footnote_nr.text +4 -0
  181. data/test/testcases/span/04_footnote/markers.html +46 -0
  182. data/test/testcases/span/04_footnote/markers.text +26 -0
  183. data/test/testcases/span/05_html/normal.html +17 -0
  184. data/test/testcases/span/05_html/normal.text +17 -0
  185. data/test/testcases/span/autolinks/url_links.html +9 -0
  186. data/test/testcases/span/autolinks/url_links.text +9 -0
  187. data/test/testcases/span/escaped_chars/normal.html +33 -0
  188. data/test/testcases/span/escaped_chars/normal.text +33 -0
  189. data/test/testcases/span/ial/simple.html +5 -0
  190. data/test/testcases/span/ial/simple.text +5 -0
  191. data/test/testcases/span/line_breaks/normal.html +11 -0
  192. data/test/testcases/span/line_breaks/normal.text +11 -0
  193. data/test/testcases/span/text_substitutions/entities.html +4 -0
  194. data/test/testcases/span/text_substitutions/entities.text +4 -0
  195. data/test/testcases/span/text_substitutions/greaterthan.html +1 -0
  196. data/test/testcases/span/text_substitutions/greaterthan.text +1 -0
  197. data/test/testcases/span/text_substitutions/lowerthan.html +1 -0
  198. data/test/testcases/span/text_substitutions/lowerthan.text +1 -0
  199. data/test/testcases/span/text_substitutions/typography.html +3 -0
  200. data/test/testcases/span/text_substitutions/typography.text +3 -0
  201. metadata +259 -0
@@ -0,0 +1,9 @@
1
+ #!/bin/bash
2
+
3
+ source ~/.bashrc
4
+
5
+ for VERSION in 1.8.6 1.8.7 1.9.1 1.9.2 'jruby 1.4.0'; do
6
+ rvm $VERSION
7
+ echo $(ruby -v)
8
+ rake test
9
+ done
@@ -0,0 +1,10 @@
1
+ #!/bin/bash
2
+
3
+ source ~/.bashrc
4
+
5
+ for VERSION in 1.8.6 1.8.7 1.9.1 1.9.2; do
6
+ rvm $VERSION
7
+ echo $(ruby -v)
8
+ ruby -Ilib bin/kramdown < benchmark/mdsyntax.text 2>&1 > /dev/null
9
+ time ruby -Ilib bin/kramdown < benchmark/mdsyntax.text > /dev/null
10
+ done
@@ -0,0 +1,26 @@
1
+ #!/usr/bin/env ruby
2
+ # -*- coding: utf-8 -*-
3
+ #
4
+ #--
5
+ # Copyright (C) 2009 Thomas Leitner <t_leitner@gmx.at>
6
+ #
7
+ # This file is part of kramdown.
8
+ #
9
+ # kramdown is free software: you can redistribute it and/or modify
10
+ # it under the terms of the GNU General Public License as published by
11
+ # the Free Software Foundation, either version 3 of the License, or
12
+ # (at your option) any later version.
13
+ #
14
+ # This program is distributed in the hope that it will be useful,
15
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
16
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
+ # GNU General Public License for more details.
18
+ #
19
+ # You should have received a copy of the GNU General Public License
20
+ # along with this program. If not, see <http://www.gnu.org/licenses/>.
21
+ #++
22
+ #
23
+
24
+ require 'kramdown'
25
+
26
+ puts Kramdown::Document.new(ARGF.read).to_html
@@ -0,0 +1,293 @@
1
+ * { margin:0; padding:0; }
2
+ body, div, span, p, a, img, ul, ol, li, table, th, tr, td, form, fieldset, legend, dl, dt, dd, blockquote, applet, object { border:0; }
3
+ body {
4
+ padding: 0;
5
+ background: #fff url("img/bg.jpg") repeat-x;
6
+ font: 0.8em/1.5 "arial",sans-serif;
7
+ color: #354146;
8
+ text-align: center;
9
+ }
10
+
11
+ /* links --------------------------------------------------------------- */
12
+ a {color:#1666a3;}
13
+ a:link {color:#1666a3;}
14
+ a:hover {color:#0b4775;}
15
+
16
+ /* header tags --------------------------------------------------------------------- */
17
+ h1, h2, h3, h4, h5, h6 { margin:15px 0 10px 0; }
18
+ h1 { font-size:200%; font-family: Georgia;}
19
+ h1#logo a{color: #ced1d2; text-decoration: none; display: block;padding: 18px 0 17px; font-weight: normal;}
20
+ h1#logo a:hover{color: #fff;}
21
+ h1#logo span.slogan {font-size: 60%; padding-left: 1.5em;}
22
+ h2 { font-size:130%; color: #354146;font-weight: bold; padding: 0; }
23
+ h3 { font-size:120%; }
24
+ h4 { font-size:120%; }
25
+ h5 { font-size:100%; }
26
+
27
+ /* layout ---------------------------------------------------------------------- */
28
+ #layout {
29
+ text-align:left;
30
+ }
31
+ #container {
32
+ clear: both;
33
+ }
34
+ #intro{
35
+ background: #e6e8e9; height: auto;
36
+ }
37
+ #intro-in{
38
+ width:891px;
39
+ margin: 0 auto;
40
+ padding: 20px 0;
41
+ }
42
+
43
+ #header {
44
+ width:891px;
45
+ margin:0 auto;
46
+ }
47
+
48
+
49
+ /* horizontal navigation --------------------------------------------------- */
50
+ #nav {
51
+ width:891px;
52
+ margin:0 auto;
53
+ }
54
+ #nav ul {
55
+ margin:0;
56
+ padding:0;
57
+ list-style:none;
58
+ height: 35px;
59
+ }
60
+ #nav ul li {
61
+ float:left;
62
+ display:block;
63
+ margin:0;
64
+ padding:0;}
65
+ #nav ul li a, #nav ul li span {
66
+ display: block;
67
+ float: left;
68
+ font-size: 90%;
69
+ color: #fff;
70
+ text-decoration: none;
71
+ padding: 12px 20px 8px;
72
+ text-align: center;
73
+ }
74
+ #nav ul li a:hover, #nav ul li span:hover {
75
+ color: #ced1d2;
76
+ text-decoration: underline;
77
+ }
78
+ #nav ul li#active a, #nav ul li.webgen-menu-item-selected span {
79
+ color: #101517;
80
+ border: 1px solid #fff;
81
+ border-bottom:1px solid #e6e8e9;
82
+ background:#e6e8e9; text-decoration:none;}
83
+
84
+ /* main content ---------------------------------------------------------------- */
85
+
86
+ .content {
87
+ padding: 0 0 0 0;
88
+ z-index: 10;
89
+ width:891px;
90
+ margin:0 auto;
91
+ }
92
+ .content .in{
93
+ padding: 20px 0 30px;
94
+ }
95
+ p.intro{
96
+ background: url("img/line.jpg");
97
+ line-height: 23px;
98
+ margin:0 0 0;
99
+ }
100
+ .shadow{
101
+ border-top: 1px solid #dddddd;
102
+ padding: 10px 0;
103
+ background: url("img/shadow.jpg") no-repeat;
104
+ }
105
+
106
+ img.thumb{padding: 3px; background: #fff; border: 1px solid #d1d1d1;}
107
+
108
+ .columns {list-style: none;margin:10px 0 0 0;padding:0; font-size: 90%;}
109
+ .columns li{float: left; width: 32%;}
110
+ .columns li.col2{border-left: 1px solid #d7d7d7;border-right: 1px solid #d7d7d7;}
111
+ .columns li h3{padding: 0 10px;color: #2e4650; margin: 0 0 5px;}
112
+ .columns li.col2 h3{padding-left: 20px;}
113
+ .columns li.col3 h3{padding-left: 20px;}
114
+ .columns li p{line-height: 22px;padding: 0 20px 0 10px; margin: 0; color: #3f4345;}
115
+ .columns li.col2 p{padding: 0 20px 0 20px;}
116
+ .columns li.col3 p{padding: 0 10px 0 20px;}
117
+ .columns li a.more{display: block;color: #1666a3;padding: 5px 0;}
118
+ .columns li a.more:hover{color: #0b4775; text-decoration: none;}
119
+
120
+
121
+
122
+ /* footer ----------------------------------------------------------------- */
123
+ #footer {
124
+ width:891px;
125
+ margin:0 auto;
126
+ clear:both;
127
+ font-size: 85%;
128
+ padding-bottom: 70px;
129
+ color: #898989;
130
+ }
131
+ #footer a{color: #898989;}
132
+ #footer a:hover{color: #666666; text-decoration: none;}
133
+ #footer .f-left, #footer .f-right { padding: 0 10px; }
134
+
135
+
136
+
137
+
138
+ /* paragraphs -------------------------------------------------------------------- */
139
+ p { margin:15px 0; }
140
+
141
+ /* tables --------------------------------------------------------------------- */
142
+ table { margin:15px 0; border-collapse:collapse; border-spacing:0; font-size:100%; }
143
+ th { text-align:center; font-weight:bold; }
144
+ th, td { padding:3px 5px; }
145
+
146
+ /* lists --------------------------------------------------------------------- */
147
+ ul, ol { display:block; margin:15px 0 15px 40px; }
148
+ ul ul, ul ul ul, ol ol, ol ol ol { margin:0; margin-left:20px; }
149
+ ol { list-style-type:decimal; }
150
+ ol ol { list-style-type:upper-alpha; }
151
+ ol ol ol {list-style-type:lower-alpha; }
152
+ li { display:list-item; }
153
+ ul li a { text-decoration:underline; }
154
+
155
+ /* definitions -------------------------------------------------------------------- */
156
+ dl { margin:15px 0; }
157
+ dt { font-weight:bold; }
158
+ dd { margin-left:30px; }
159
+
160
+ /* other HTML tags --------------------------------------------------------------------- */
161
+ fieldset { margin:15px 0; padding:10px; border:1px solid #CCC; }
162
+ legend { margin-left:10px; font-size:100%; font-weight:bold; color:#000; }
163
+ abbr, acronym, .help { border-bottom:1px dotted #CCC; cursor:help; }
164
+ blockquote { margin:15px 20px; font-style:italic; }
165
+ del, .del { text-decoration:line-through; }
166
+ strong, .strong { font-weight:bold; }
167
+ cite, em, q, var { font-style:italic; }
168
+ code, kbd, samp {font-family:monospace; font-size:110%; }
169
+ hr { display:block; height:1px; margin:10px 0; padding:0; border:0 solid #CCC; background:#CCC; color:#CCC;}
170
+ .f-left {float:left;}
171
+ .f-right {float:right;}
172
+ .a-left, tr.a-left td {text-align:left;}
173
+ .a-center, tr.a-center td {text-align:center;}
174
+ .a-right, tr.a-right td {text-align:right;}
175
+ .a-justify {text-align:justify;}
176
+ .va-top {vertical-align:top;}
177
+ .va-middle {vertical-align:middle;}
178
+ .va-bottom {vertical-align:bottom;}
179
+ .clear { clear:both; }
180
+ .box { min-height:1px; }
181
+ .box:after { display:block; visibility:hidden; clear:both; line-height:0; font-size:0; content:"."; }
182
+ .noscreen { display:none; }
183
+ .mleft10 { margin-left: 10px; }
184
+ .mright10 { margin-right: 10px; }
185
+ .mtop10 { margin-top: 10px; }
186
+ .mbottom10 { margin-bottom: 10px; }
187
+
188
+
189
+
190
+ input.small{
191
+ width: 50px;
192
+ }
193
+ input.normal{
194
+ width: 146px;
195
+ }
196
+ .bigger {font-size:115%;}
197
+ .smaller {font-size:85%;}
198
+
199
+ .high {color:#00F;}
200
+ .nonhigh {color:#777;}
201
+
202
+ .foto{ display: block; border: 3px solid #ddd;}
203
+
204
+
205
+ /* added definitions ------------------------------------------------------------ */
206
+ .news-item + .news-item {
207
+ border-top: 1px solid #dddddd;
208
+ }
209
+ .news-date {
210
+ margin-top: 5px;
211
+ }
212
+
213
+ pre {
214
+ margin: 15px 10px;
215
+ background-color: #e6e8e9;
216
+ color: #000;
217
+ }
218
+
219
+ pre.show-whitespaces .ws-space {
220
+ background-color: #f44;
221
+ }
222
+ pre.show-whitespaces .ws-space-l {
223
+ background-color: #f22;
224
+ }
225
+ pre.show-whitespaces .ws-space-r {
226
+ background-color: #f00;
227
+ }
228
+
229
+ pre.show-whitespaces .ws-tab {
230
+ background-color: #ff4;
231
+ }
232
+ pre.show-whitespaces .ws-tab-l {
233
+ background-color: #ff2;
234
+ }
235
+ pre.show-whitespaces .ws-tab-r {
236
+ background-color: #ff0;
237
+ }
238
+
239
+ pre.show-whitespaces.ws-lr .ws-tab {
240
+ background-color: inherit;
241
+ }
242
+ pre.show-whitespaces.ws-lr .ws-space {
243
+ background-color: inherit;
244
+ opacity: 0;
245
+ }
246
+
247
+ blockquote.markdown-difference {
248
+ margin: 15px 20px;
249
+ padding: 5px;
250
+ border: 2px solid #e6e8e9;
251
+ background-color: #ffffee
252
+ }
253
+
254
+ blockquote.markdown-difference:before {
255
+ content: "Difference to Standard Markdown";
256
+ display: block;
257
+ font-weight: bold;
258
+ margin-top: 5px
259
+ }
260
+
261
+ pre.kdexample-before {
262
+ width: 45%;
263
+ float: left;
264
+ }
265
+
266
+ pre.kdexample-after-source {
267
+ width: 45%;
268
+ float: right;
269
+ background-color: #ffffee;
270
+ border: 2px solid #e6e8e9;
271
+ margin-bottom: 3px;
272
+ }
273
+
274
+ div.kdexample-after-live {
275
+ width: 45%;
276
+ float: right;
277
+ clear: right;
278
+ background-color: #eeffee;
279
+ border: 2px solid #e6e8e9;
280
+ margin: 0px 10px;
281
+ }
282
+
283
+ div.kdsyntaxlink {
284
+ float: right;
285
+ padding: 5px;
286
+ border: 1px solid #e6e8e9;
287
+ margin-right: 10px;
288
+ margin-left: 10px;
289
+ }
290
+
291
+ div.kdsyntaxlink a {
292
+ text-decoration: none;
293
+ }
@@ -0,0 +1,78 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="{lang:}" lang="{lang:}">
3
+ <head>
4
+ <meta http-equiv="content-type" content="text/html; charset=utf-8" />
5
+ <meta name="author" content="Thomas Leitner" />
6
+ <meta name="copyright" content="2009 Thomas Leitner" />
7
+ <meta name="description" content="ruby-amt is a library for accessing Intel AMT via SOAP" />
8
+ <meta name="keywords" content="ruby-amt,ruby amt,ruby vpro" />
9
+ <link href="{relocatable: default.css}" type="text/css" rel="stylesheet" media="screen,projection" />
10
+ <link href="{relocatable: news.atom}" type="application/atom+xml" rel="alternate" />
11
+
12
+ <title>{title:} | ruby-amt</title>
13
+ </head>
14
+ <body>
15
+ <div id="layout">
16
+
17
+ <div id="header">
18
+
19
+ <h1 id="logo"><a href="{relocatable: /}" title="Homepage">ruby-amt <span class='slogan'>library for controlling Intel AMT devies via SOAP</span></a></h1>
20
+ <hr class="noscreen" />
21
+
22
+ </div>
23
+
24
+ <hr class="noscreen" />
25
+
26
+ <div id="nav" class="box">
27
+ {menu: {max_levels: 1, used_nodes: files}}
28
+ <hr class="noscreen" />
29
+ </div>
30
+
31
+ <div id="container" class="box">
32
+
33
+ <% if context.content_node.node_info[:page].blocks.has_key?('intro') %>
34
+ <div id="intro">
35
+ <div id="intro-in">
36
+ <webgen:block name="intro" node="first" />
37
+ </div>
38
+ </div>
39
+ <% end %>
40
+
41
+ <div id="main" class="content box">
42
+ <div class="in">
43
+ <div class="shadow">
44
+ <webgen:block name="content" />
45
+ </div>
46
+
47
+ <div class="clear"></div>
48
+
49
+ </div>
50
+ </div>
51
+
52
+ </div>
53
+
54
+ <div id="footer" class="shadow">
55
+ <div class="f-left">Copyright © 2009 Thomas Leitner</div>
56
+ <div class="f-right">Design by <a href="http://www.davidkohout.cz" title="Original template design">David Kohout</a></div>
57
+ </div>
58
+ </div>
59
+
60
+ <!-- Start of StatCounter Code -->
61
+ <script type="text/javascript">
62
+ var sc_project=4267845;
63
+ var sc_invisible=1;
64
+ var sc_partition=46;
65
+ var sc_click_stat=1;
66
+ var sc_security="41321455";
67
+ </script>
68
+
69
+ <script type="text/javascript" src="http://www.statcounter.com/counter/counter_xhtml.js"></script>
70
+ <noscript><div class="statcounter">
71
+ <a title="web counter" class="statcounter" href="http://www.statcounter.com/free_hit_counter.html">
72
+ <img class="statcounter" src="http://c.statcounter.com/4267845/0/41321455/1/" alt="web counter" />
73
+ </a>
74
+ </div></noscript>
75
+ <!-- End of StatCounter Code -->
76
+
77
+ </body>
78
+ </html>
@@ -0,0 +1,89 @@
1
+ ---
2
+ title: Home
3
+ in_menu: true
4
+ sort_info: 1
5
+ ---
6
+ ## Syntax
7
+
8
+ The kramdown syntax is based on Markdown, a very easy to write, easy to read markup for writing HTML
9
+ documents in plain text. Since the basic Markdown syntax has some shortcomings, implementations
10
+ (especially the [PHP Markdown Extra] package) have tried to overcome this shortcomings with
11
+ additional syntax. kramdown supports all features of the original Markdown syntax (albeit with some
12
+ minor corrections) as well as newer features implemented in the [PHP Markdown Extra] package and
13
+ [Maruku].
14
+
15
+ For a complete description of the implemented syntax, have a look at the [Syntax page]({relocatable:
16
+ syntax.html}).
17
+
18
+
19
+ ## Usage
20
+
21
+ The kramdown package provides two ways for using it:
22
+
23
+ * **As a library**
24
+
25
+ kramdown uses basically the same API as [RedCloth], [BlueCloth] and [Maruku]:
26
+
27
+ require 'kramdown'
28
+
29
+ Kramdown::Document.new(text).to_html
30
+
31
+ The second parameter to the `new` call is an options hash for (de)activating certain features. For
32
+ more information have a look at the [API documentation]({relocatable: rdoc/index.html}).
33
+
34
+ * **As an application**
35
+
36
+ Together with the library files a binary called `kramdown` is shipped which can be used to convert
37
+ text in kramdown syntax to HTML. It either reads from the files specified as the command line
38
+ arguments or from the standard input. For example:
39
+
40
+ kramdown path/to/kramdown/doc/syntax.page
41
+
42
+
43
+ ## Tests
44
+
45
+ kramdown uses various test suites to verify the correct working of the parser and the HTML
46
+ converter. For more information, have a look at the [tests document](tests.html).
47
+
48
+
49
+ ## Bugs, Forums, Mailing Lists
50
+
51
+ If you have found a bug, you should [report it here][bug_report]. Also, there are [forums][forum]
52
+ and [mailing lists][ml] available if you have any questions!
53
+
54
+ [bug_report]: http://rubyforge.org/tracker/?atid=28673&group_id=7403&func=browse
55
+ [forum]: http://rubyforge.org/forum/?group_id=7403
56
+ [ml]: http://rubyforge.org/mail/?group_id=7403
57
+
58
+
59
+ ## Author
60
+
61
+ * Thomas Leitner
62
+ * e-Mail: <t_leitner@gmx.at>
63
+ * GPG Key-Id: 0xB2D0A854
64
+
65
+
66
+ [PHP Markdown Extra]: http://michelf.com/projects/php-markdown/extra/
67
+ [Maruku]: http://maruku.rubyforge.org
68
+ [RedCloth]: http://whytheluckystiff.net/ruby/redcloth/
69
+ [BlueCloth]: http://www.deveiate.org/projects/BlueCloth
70
+
71
+
72
+ --- name:intro
73
+
74
+ ## Welcome to the kramdown site
75
+
76
+ kramdown is a *free* GPL-licensed [Ruby](http://www.ruby-lang.org) library for parsing Markdown-like
77
+ syntax. It is completely written in Ruby, supports standard Markdown (with some minor modifications)
78
+ and various extensions that have been made popular by the [PHP Markdown Extra] package and [Maruku].
79
+
80
+ It is probably the fastest pure-Ruby Markdown converter available (November 2009), being 5x faster
81
+ than [Maruku] and about 10x faster than [BlueFeather].
82
+
83
+ <div class="a-center">
84
+ The latest version of kramdown is <b>0.1.0</b> and it was released on <b>2009-11-21</b>.
85
+ </div>
86
+
87
+ [PHP Markdown Extra]: http://michelf.com/projects/php-markdown/extra/
88
+ [Maruku]: http://maruku.rubyforge.org
89
+ [BlueFeather]: http://ruby.morphball.net/bluefeather/index_en.html