kramdown 0.1.0 → 0.2.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 (87) hide show
  1. data/COPYING +1 -1
  2. data/ChangeLog +423 -1
  3. data/Rakefile +5 -5
  4. data/VERSION +1 -1
  5. data/doc/default.template +4 -4
  6. data/doc/index.page +5 -4
  7. data/doc/news.feed +1 -1
  8. data/doc/quickref.page +72 -25
  9. data/doc/syntax.page +238 -66
  10. data/doc/tests.page +2 -3
  11. data/lib/kramdown/converter.rb +41 -10
  12. data/lib/kramdown/deprecated.rb +41 -0
  13. data/lib/kramdown/document.rb +17 -8
  14. data/lib/kramdown/extension.rb +13 -7
  15. data/lib/kramdown/parser.rb +263 -95
  16. data/lib/kramdown/version.rb +28 -0
  17. data/test/run_tests.rb +1 -1
  18. data/test/test_files.rb +1 -1
  19. data/test/testcases/block/02_eob/middle.html +1 -0
  20. data/test/testcases/block/04_header/atx_header.html +8 -0
  21. data/test/testcases/block/04_header/atx_header.text +8 -0
  22. data/test/testcases/block/04_header/setext_header.html +6 -0
  23. data/test/testcases/block/04_header/setext_header.text +9 -0
  24. data/test/testcases/block/07_horizontal_rule/sepspaces.html +3 -0
  25. data/test/testcases/block/07_horizontal_rule/sepspaces.text +3 -0
  26. data/test/testcases/block/07_horizontal_rule/septabs.html +3 -0
  27. data/test/testcases/block/07_horizontal_rule/septabs.text +3 -0
  28. data/test/testcases/block/09_html/content_model/deflists.html +6 -0
  29. data/test/testcases/block/09_html/content_model/deflists.options +1 -0
  30. data/test/testcases/block/09_html/content_model/deflists.text +6 -0
  31. data/test/testcases/block/09_html/content_model/tables.html +14 -0
  32. data/test/testcases/block/09_html/content_model/tables.options +1 -0
  33. data/test/testcases/block/09_html/content_model/tables.text +14 -0
  34. data/test/testcases/block/09_html/html_and_codeblocks.options +1 -1
  35. data/test/testcases/block/09_html/invalid_html_1.html +0 -2
  36. data/test/testcases/block/09_html/invalid_html_2.html +2 -3
  37. data/test/testcases/block/09_html/markdown_attr.html +38 -0
  38. data/test/testcases/block/09_html/markdown_attr.text +38 -0
  39. data/test/testcases/block/09_html/not_parsed.html +14 -0
  40. data/test/testcases/block/09_html/not_parsed.text +15 -0
  41. data/test/testcases/block/09_html/parse_as_raw.html +16 -14
  42. data/test/testcases/block/09_html/parse_as_raw.options +1 -0
  43. data/test/testcases/block/09_html/parse_as_raw.text +13 -1
  44. data/test/testcases/block/09_html/parse_as_span.html +2 -5
  45. data/test/testcases/block/09_html/parse_as_span.options +1 -0
  46. data/test/testcases/block/09_html/{auto_parse_block_html.html → parse_block_html.html} +0 -0
  47. data/test/testcases/block/09_html/parse_block_html.options +1 -0
  48. data/test/testcases/block/09_html/{auto_parse_block_html.text → parse_block_html.text} +0 -0
  49. data/test/testcases/block/09_html/simple.html +21 -30
  50. data/test/testcases/block/09_html/simple.options +1 -0
  51. data/test/testcases/block/09_html/simple.text +13 -2
  52. data/test/testcases/block/11_ial/auto_id_and_ial.html +1 -0
  53. data/test/testcases/block/11_ial/auto_id_and_ial.options +1 -0
  54. data/test/testcases/block/11_ial/auto_id_and_ial.text +2 -0
  55. data/test/testcases/block/12_extension/{nokramdown.html → nomarkdown.html} +0 -0
  56. data/test/testcases/block/12_extension/{nokramdown.text → nomarkdown.text} +4 -4
  57. data/test/testcases/block/12_extension/{kdoptions.html → options.html} +9 -0
  58. data/test/testcases/block/12_extension/options.text +28 -0
  59. data/test/testcases/block/12_extension/{kdoptions2.html → options2.html} +0 -0
  60. data/test/testcases/block/12_extension/{kdoptions2.text → options2.text} +1 -1
  61. data/test/testcases/block/13_definition_list/definition_at_beginning.html +1 -0
  62. data/test/testcases/block/13_definition_list/definition_at_beginning.text +1 -0
  63. data/test/testcases/block/13_definition_list/multiple_terms.html +13 -0
  64. data/test/testcases/block/13_definition_list/multiple_terms.text +10 -0
  65. data/test/testcases/block/13_definition_list/para_wrapping.html +10 -0
  66. data/test/testcases/block/13_definition_list/para_wrapping.text +6 -0
  67. data/test/testcases/block/13_definition_list/separated_by_eob.html +8 -0
  68. data/test/testcases/block/13_definition_list/separated_by_eob.text +5 -0
  69. data/test/testcases/block/13_definition_list/simple.html +8 -0
  70. data/test/testcases/block/13_definition_list/simple.text +7 -0
  71. data/test/testcases/block/13_definition_list/styled_terms.html +4 -0
  72. data/test/testcases/block/13_definition_list/styled_terms.text +2 -0
  73. data/test/testcases/block/13_definition_list/too_much_space.html +3 -0
  74. data/test/testcases/block/13_definition_list/too_much_space.text +4 -0
  75. data/test/testcases/block/13_definition_list/with_blocks.html +38 -0
  76. data/test/testcases/block/13_definition_list/with_blocks.text +24 -0
  77. data/test/testcases/span/05_html/across_lines.html +1 -0
  78. data/test/testcases/span/05_html/across_lines.text +2 -0
  79. data/test/testcases/span/05_html/link_with_mailto.html +1 -0
  80. data/test/testcases/span/05_html/link_with_mailto.text +1 -0
  81. data/test/testcases/span/05_html/markdown_attr.html +5 -0
  82. data/test/testcases/span/05_html/markdown_attr.text +5 -0
  83. data/test/testcases/span/05_html/normal.html +7 -0
  84. data/test/testcases/span/05_html/normal.text +7 -0
  85. metadata +56 -12
  86. data/test/testcases/block/09_html/auto_parse_block_html.options +0 -1
  87. data/test/testcases/block/12_extension/kdoptions.text +0 -18
data/COPYING CHANGED
@@ -1,4 +1,4 @@
1
- kramdown - fast, pure-Ruby converter for Markdown-like markup
1
+ kramdown - fast, pure-Ruby Markdown-superset converter
2
2
  Copyright (C) 2009 Thomas Leitner <t_leitner@gmx.at>
3
3
 
4
4
  kramdown is free software: you can redistribute it and/or modify
data/ChangeLog CHANGED
@@ -1,4 +1,426 @@
1
- commit 528f4baec14992725b01dbbbef9ebd99d03fcf4f
1
+ commit 034525fb53f178da9498e0f653c382a17549ca3a
2
+ Author: Thomas Leitner <t_leitner@gmx.at>
3
+ Date: Thu Dec 3 20:25:17 2009 +0100
4
+
5
+ Updated release notes
6
+
7
+ doc/index.page
8
+ doc/news/release_0_2_0.page
9
+
10
+ commit 89fc586b5f70ccfc8facfae48aa0a0ce31df1d73
11
+ Author: Thomas Leitner <t_leitner@gmx.at>
12
+ Date: Thu Dec 3 14:25:46 2009 +0100
13
+
14
+ Documentation updates
15
+
16
+ * Added definition list examples to quick reference
17
+ * Added more head lines for quicker access to syntax documentation
18
+
19
+ doc/quickref.page
20
+ doc/syntax.page
21
+
22
+ commit 4272568be7c735411faf456e98066d5b51989634
23
+ Author: Thomas Leitner <t_leitner@gmx.at>
24
+ Date: Thu Dec 3 08:43:46 2009 +0100
25
+
26
+ Implemented definition list syntax
27
+
28
+ doc/syntax.page
29
+ lib/kramdown/converter.rb
30
+ lib/kramdown/parser.rb
31
+ test/testcases/block/02_eob/middle.html
32
+ test/testcases/block/13_definition_list/definition_at_beginning.html
33
+ test/testcases/block/13_definition_list/definition_at_beginning.text
34
+ test/testcases/block/13_definition_list/multiple_terms.html
35
+ test/testcases/block/13_definition_list/multiple_terms.text
36
+ test/testcases/block/13_definition_list/para_wrapping.html
37
+ test/testcases/block/13_definition_list/para_wrapping.text
38
+ test/testcases/block/13_definition_list/separated_by_eob.html
39
+ test/testcases/block/13_definition_list/separated_by_eob.text
40
+ test/testcases/block/13_definition_list/simple.html
41
+ test/testcases/block/13_definition_list/simple.text
42
+ test/testcases/block/13_definition_list/styled_terms.html
43
+ test/testcases/block/13_definition_list/styled_terms.text
44
+ test/testcases/block/13_definition_list/too_much_space.html
45
+ test/testcases/block/13_definition_list/too_much_space.text
46
+ test/testcases/block/13_definition_list/with_blocks.html
47
+ test/testcases/block/13_definition_list/with_blocks.text
48
+
49
+ commit f7cdd0fa6c647b91be82184a9c4e755f8feed749
50
+ Author: Thomas Leitner <t_leitner@gmx.at>
51
+ Date: Thu Dec 3 08:29:30 2009 +0100
52
+
53
+ Another major update to the HTML parser
54
+
55
+ * script tags in spans are not parsed anymore
56
+ * trying to fix broken HTML, for example, auto-closing br and hr tags
57
+ * HTML block tags in spans are now escaped
58
+ * updated syntax documentation regarding HTML blocks and spans
59
+
60
+ doc/syntax.page
61
+ lib/kramdown/parser.rb
62
+ test/testcases/block/09_html/invalid_html_2.html
63
+ test/testcases/block/09_html/parse_as_raw.html
64
+ test/testcases/span/05_html/normal.html
65
+ test/testcases/span/05_html/normal.text
66
+
67
+ commit 70982a61b7c38d34ef7aa420cf0bb05d3b1c1e85
68
+ Author: Thomas Leitner <t_leitner@gmx.at>
69
+ Date: Wed Dec 2 15:02:41 2009 +0100
70
+
71
+ Fixed a problem with parsing HTML
72
+
73
+ When opening and closing an HTML span tag on the same line as an HTML
74
+ block tag, the closing tag of the span tag was omitted.
75
+
76
+ lib/kramdown/parser.rb
77
+ test/testcases/block/09_html/not_parsed.html
78
+ test/testcases/block/09_html/not_parsed.text
79
+
80
+ commit ae805cfcace68d089135d20c6636f8cc74088930
81
+ Author: Thomas Leitner <t_leitner@gmx.at>
82
+ Date: Tue Dec 1 15:49:10 2009 +0100
83
+
84
+ Major update to the HTML block parser
85
+
86
+ Parsing of raw HTML block tags should work much better now since HTML block
87
+ lines are now processed even inside raw HTML blocks
88
+
89
+ doc/news/release_0_2_0.page
90
+ doc/syntax.page
91
+ lib/kramdown/converter.rb
92
+ lib/kramdown/parser.rb
93
+ test/testcases/block/09_html/markdown_attr.html
94
+ test/testcases/block/09_html/markdown_attr.text
95
+ test/testcases/block/09_html/not_parsed.html
96
+ test/testcases/block/09_html/not_parsed.text
97
+ test/testcases/block/09_html/parse_as_raw.html
98
+ test/testcases/block/09_html/parse_as_raw.text
99
+ test/testcases/block/09_html/simple.html
100
+
101
+ commit 7058ee02758f5e66f5a4030ee987685ab0dd5f87
102
+ Author: Thomas Leitner <t_leitner@gmx.at>
103
+ Date: Tue Dec 1 08:06:28 2009 +0100
104
+
105
+ Fixed typo
106
+
107
+ doc/syntax.page
108
+
109
+ commit 6af053543fa37132b2b099792fafae364ef0aa21
110
+ Author: Thomas Leitner <t_leitner@gmx.at>
111
+ Date: Mon Nov 30 16:54:17 2009 +0100
112
+
113
+ Added support for setting header IDs via the syntax available in PHP Markdown Extra and Maruku
114
+
115
+ doc/news/release_0_2_0.page
116
+ doc/syntax.page
117
+ lib/kramdown/parser.rb
118
+ test/testcases/block/04_header/atx_header.html
119
+ test/testcases/block/04_header/atx_header.text
120
+ test/testcases/block/04_header/setext_header.html
121
+ test/testcases/block/04_header/setext_header.text
122
+
123
+ commit 54ee8f5d1b1f598ed7aa915b4274589652c75019
124
+ Author: Thomas Leitner <t_leitner@gmx.at>
125
+ Date: Mon Nov 30 16:18:23 2009 +0100
126
+
127
+ Small documentation fix
128
+
129
+ doc/syntax.page
130
+
131
+ commit 2e221b46b14a50d2832f3ab7817f668fd0a58dee
132
+ Author: Thomas Leitner <t_leitner@gmx.at>
133
+ Date: Mon Nov 30 16:13:43 2009 +0100
134
+
135
+ Four small updates
136
+
137
+ * entities have now their own Element type :entity
138
+ * typographic symbols have now their own Element type :typographic_sym
139
+ * removed unnecessary parsing of special HTML chars
140
+ * small fix for parsing HTML spans
141
+
142
+ lib/kramdown/converter.rb
143
+ lib/kramdown/parser.rb
144
+
145
+ commit 915bba0082cb90efa74bb16814dda7ef1bdf0afa
146
+ Author: Thomas Leitner <t_leitner@gmx.at>
147
+ Date: Mon Nov 30 07:40:39 2009 +0100
148
+
149
+ Renamed processing option :first_as_block to :first_is_block
150
+
151
+ lib/kramdown/converter.rb
152
+ lib/kramdown/parser.rb
153
+
154
+ commit 03b00f2587f4a69292bce7d0ee3d7996966a5b24
155
+ Author: Thomas Leitner <t_leitner@gmx.at>
156
+ Date: Mon Nov 30 07:37:03 2009 +0100
157
+
158
+ Bug fix: horizontal rules may now also contain tabs as separator
159
+
160
+ doc/news/release_0_2_0.page
161
+ doc/syntax.page
162
+ lib/kramdown/parser.rb
163
+ test/testcases/block/07_horizontal_rule/sepspaces.html
164
+ test/testcases/block/07_horizontal_rule/sepspaces.text
165
+ test/testcases/block/07_horizontal_rule/septabs.html
166
+ test/testcases/block/07_horizontal_rule/septabs.text
167
+
168
+ commit 3a99d93b0f677bd8fa9ea3be25b65b48fa24b67a
169
+ Author: Thomas Leitner <t_leitner@gmx.at>
170
+ Date: Sat Nov 28 10:45:00 2009 +0100
171
+
172
+ Clarified a point regarding text on HTML block lines
173
+
174
+ doc/syntax.page
175
+
176
+ commit ddbab79d82e7fad5ddfc0841ab4f1ca765b5bc7c
177
+ Author: Thomas Leitner <t_leitner@gmx.at>
178
+ Date: Sat Nov 28 10:39:47 2009 +0100
179
+
180
+ Added the correct content model for parsing th and td tags
181
+
182
+ lib/kramdown/parser.rb
183
+ test/testcases/block/09_html/content_model/tables.html
184
+ test/testcases/block/09_html/content_model/tables.options
185
+ test/testcases/block/09_html/content_model/tables.text
186
+ test/testcases/block/09_html/tables.html
187
+ test/testcases/block/09_html/tables.options
188
+ test/testcases/block/09_html/tables.text
189
+
190
+ commit 4b076ad0280fa6f91e6e617ae98f82900df73fdf
191
+ Author: Thomas Leitner <t_leitner@gmx.at>
192
+ Date: Sat Nov 28 10:35:00 2009 +0100
193
+
194
+ Added the correct content model for parsing dd tags
195
+
196
+ lib/kramdown/parser.rb
197
+ test/testcases/block/09_html/content_model/deflists.html
198
+ test/testcases/block/09_html/content_model/deflists.options
199
+ test/testcases/block/09_html/content_model/deflists.text
200
+
201
+ commit 6a6f47910fc2283d0a6c83aeb311f1b4e587b300
202
+ Author: Thomas Leitner <t_leitner@gmx.at>
203
+ Date: Sat Nov 28 10:22:52 2009 +0100
204
+
205
+ Small bug fix
206
+
207
+ Rakefile
208
+
209
+ commit b4a6faa1c087d5240ac2c5a62d8931aa9f36b830
210
+ Author: Thomas Leitner <t_leitner@gmx.at>
211
+ Date: Sat Nov 28 10:22:40 2009 +0100
212
+
213
+ Made it clearer that kramdown is a Markdown-superset converter
214
+
215
+ COPYING
216
+ Rakefile
217
+ doc/default.template
218
+ doc/index.page
219
+ doc/news.feed
220
+ doc/quickref.page
221
+ doc/tests.page
222
+
223
+ commit 7329d179c7a4ff44e99c39dc19a8532d0f203315
224
+ Author: Thomas Leitner <t_leitner@gmx.at>
225
+ Date: Sat Nov 28 08:59:45 2009 +0100
226
+
227
+ Renamed extensions kdoptions to options and nokramdown to nomarkdown
228
+
229
+ doc/news/release_0_2_0.page
230
+ doc/quickref.page
231
+ doc/syntax.page
232
+ doc/tests.page
233
+ lib/kramdown/deprecated.rb
234
+ lib/kramdown/document.rb
235
+ lib/kramdown/extension.rb
236
+ test/testcases/block/09_html/parse_as_raw.text
237
+ test/testcases/block/12_extension/kdoptions.html
238
+ test/testcases/block/12_extension/kdoptions.text
239
+ test/testcases/block/12_extension/kdoptions2.html
240
+ test/testcases/block/12_extension/kdoptions2.text
241
+ test/testcases/block/12_extension/nokramdown.html
242
+ test/testcases/block/12_extension/nokramdown.text
243
+ test/testcases/block/12_extension/nomarkdown.html
244
+ test/testcases/block/12_extension/nomarkdown.text
245
+ test/testcases/block/12_extension/options.html
246
+ test/testcases/block/12_extension/options.text
247
+ test/testcases/block/12_extension/options2.html
248
+ test/testcases/block/12_extension/options2.text
249
+
250
+ commit 10188ec8d9ec197214004014e476b8ae541f30dd
251
+ Author: Thomas Leitner <t_leitner@gmx.at>
252
+ Date: Fri Nov 27 16:53:21 2009 +0100
253
+
254
+ Now defaulting to parsing HTML spans since this is what standard Markdown does
255
+
256
+ doc/news/release_0_2_0.page
257
+ doc/syntax.page
258
+ lib/kramdown/document.rb
259
+ test/testcases/span/05_html/markdown_attr.html
260
+
261
+ commit 3966cac694de1a58f8472f5366da0a1eb1b60475
262
+ Author: Thomas Leitner <t_leitner@gmx.at>
263
+ Date: Fri Nov 27 10:15:35 2009 +0100
264
+
265
+ Updated release notes
266
+
267
+ doc/news/release_0_2_0.page
268
+
269
+ commit eac4769a09f226a56a731518fdfe9d0592ee17e5
270
+ Author: Thomas Leitner <t_leitner@gmx.at>
271
+ Date: Fri Nov 27 09:59:50 2009 +0100
272
+
273
+ Made parsing of HTML elements configurable
274
+
275
+ * added a configuration for enabling/disabling parsing of block and/or span HTML elements
276
+ * parsing of block and span HTML elements is now disabled by default
277
+ * added support for the markdown attribute
278
+
279
+ doc/quickref.page
280
+ doc/syntax.page
281
+ lib/kramdown/document.rb
282
+ lib/kramdown/extension.rb
283
+ lib/kramdown/parser.rb
284
+ test/testcases/block/09_html/auto_parse_block_html.html
285
+ test/testcases/block/09_html/auto_parse_block_html.options
286
+ test/testcases/block/09_html/auto_parse_block_html.text
287
+ test/testcases/block/09_html/html_and_codeblocks.options
288
+ test/testcases/block/09_html/markdown_attr.html
289
+ test/testcases/block/09_html/markdown_attr.text
290
+ test/testcases/block/09_html/not_parsed.html
291
+ test/testcases/block/09_html/not_parsed.text
292
+ test/testcases/block/09_html/parse_as_raw.options
293
+ test/testcases/block/09_html/parse_as_raw.text
294
+ test/testcases/block/09_html/parse_as_span.options
295
+ test/testcases/block/09_html/parse_block_html.html
296
+ test/testcases/block/09_html/parse_block_html.options
297
+ test/testcases/block/09_html/parse_block_html.text
298
+ test/testcases/block/09_html/simple.options
299
+ test/testcases/block/09_html/tables.html
300
+ test/testcases/block/09_html/tables.options
301
+ test/testcases/block/09_html/tables.text
302
+ test/testcases/block/12_extension/kdoptions.html
303
+ test/testcases/block/12_extension/kdoptions.text
304
+ test/testcases/span/05_html/markdown_attr.html
305
+ test/testcases/span/05_html/markdown_attr.text
306
+
307
+ commit 0f63228e21f931929de590d9c7cfc4b9e03b9cef
308
+ Author: Thomas Leitner <t_leitner@gmx.at>
309
+ Date: Fri Nov 27 08:31:08 2009 +0100
310
+
311
+ Added version number to quickref and syntax doc
312
+
313
+ doc/quickref.page
314
+ doc/syntax.page
315
+
316
+ commit e1ffeee1f23a027d307b41a385ccfbcde077b858
317
+ Author: Thomas Leitner <t_leitner@gmx.at>
318
+ Date: Thu Nov 26 20:49:16 2009 +0100
319
+
320
+ Updated HTML block and span parser
321
+
322
+ * span level HTML tags may now be broken across lines
323
+ * better parsing of block level HTML tags
324
+ * clarified some points regarding HTML parsing in the syntax spec
325
+
326
+ doc/syntax.page
327
+ lib/kramdown/converter.rb
328
+ lib/kramdown/parser.rb
329
+ test/testcases/block/09_html/invalid_html_1.html
330
+ test/testcases/block/09_html/parse_as_raw.html
331
+ test/testcases/block/09_html/parse_as_raw.text
332
+ test/testcases/block/09_html/parse_as_span.html
333
+ test/testcases/block/09_html/simple.html
334
+ test/testcases/block/09_html/simple.text
335
+ test/testcases/block/12_extension/kdoptions.html
336
+ test/testcases/span/05_html/across_lines.html
337
+ test/testcases/span/05_html/across_lines.text
338
+ test/testcases/span/05_html/normal.html
339
+ test/testcases/span/05_html/normal.text
340
+
341
+ commit d7bbb7efcf367b5eebbcbed80307f3c42b6ffbb3
342
+ Author: Thomas Leitner <t_leitner@gmx.at>
343
+ Date: Wed Nov 25 15:40:25 2009 +0100
344
+
345
+ Updated release notes
346
+
347
+ doc/news/release_0_2_0.page
348
+
349
+ commit caf2275e87e1de4cea7f9bf10834e052e777dfd3
350
+ Author: Thomas Leitner <t_leitner@gmx.at>
351
+ Date: Wed Nov 25 15:38:43 2009 +0100
352
+
353
+ Fixed bug in parsing of autolinks
354
+
355
+ lib/kramdown/parser.rb
356
+ test/testcases/span/05_html/link_with_mailto.html
357
+ test/testcases/span/05_html/link_with_mailto.text
358
+
359
+ commit fc8f8bebf47aad093a382885cb6fd8e92c93409c
360
+ Author: Thomas Leitner <t_leitner@gmx.at>
361
+ Date: Tue Nov 24 08:02:39 2009 +0100
362
+
363
+ Updated parsing of HTML/XML elements
364
+
365
+ * HTML tables should now be parsed correctly
366
+ * Slight modification of output for HTML elements that appear entirely on one line
367
+ * Unknown XML/HTML elements are not parsed at all now
368
+
369
+ doc/syntax.page
370
+ lib/kramdown/converter.rb
371
+ lib/kramdown/parser.rb
372
+ test/testcases/block/09_html/parse_as_raw.html
373
+ test/testcases/block/09_html/parse_as_span.html
374
+ test/testcases/block/09_html/simple.html
375
+ test/testcases/block/09_html/tables.html
376
+ test/testcases/block/09_html/tables.text
377
+
378
+ commit 19bd62ff33410bfe0d4b8674b7ed20191729d013
379
+ Author: Thomas Leitner <t_leitner@gmx.at>
380
+ Date: Tue Nov 24 07:28:41 2009 +0100
381
+
382
+ Option :auto_ids now defaults to true
383
+
384
+ Rakefile
385
+ doc/quickref.page
386
+ doc/syntax.page
387
+ lib/kramdown/document.rb
388
+ test/run_tests.rb
389
+ test/test_files.rb
390
+
391
+ commit 8516e5b56008d601aa7301a9cde5d89190802be3
392
+ Author: Thomas Leitner <t_leitner@gmx.at>
393
+ Date: Tue Nov 24 07:25:06 2009 +0100
394
+
395
+ Bumped version number, moved VERSION const to own file and added release notes file
396
+
397
+ doc/news/release_0_2_0.page
398
+ lib/kramdown/document.rb
399
+ lib/kramdown/version.rb
400
+
401
+ commit 8adb0b65681dc7c2f24bc01edeba488ac10beecd
402
+ Author: Thomas Leitner <t_leitner@gmx.at>
403
+ Date: Tue Nov 24 07:18:43 2009 +0100
404
+
405
+ Fixed bug with header IDs
406
+
407
+ When using :auto_ids=true and an IAL to assign an ID to a header,
408
+ two id attributes were falsely created.
409
+
410
+ lib/kramdown/parser.rb
411
+ test/testcases/block/11_ial/auto_id_and_ial.html
412
+ test/testcases/block/11_ial/auto_id_and_ial.options
413
+ test/testcases/block/11_ial/auto_id_and_ial.text
414
+
415
+ commit 6cc1874480b565da30fbf8699df938b7d52637fe
416
+ Author: Thomas Leitner <t_leitner@gmx.at>
417
+ Date: Sat Nov 21 08:44:47 2009 +0100
418
+
419
+ Fixed copy-paste issue
420
+
421
+ doc/default.template
422
+
423
+ commit a790a15c11924f08acd39c7f198c6c71cadc80d3
2
424
  Author: Thomas Leitner <t_leitner@gmx.at>
3
425
  Date: Sat Nov 21 08:31:07 2009 +0100
4
426
 
data/Rakefile CHANGED
@@ -86,7 +86,7 @@ end
86
86
 
87
87
  namespace :dev do
88
88
 
89
- SUMMARY = 'kramdown is a fast, pure-Ruby converter for Markdown-like markup.'
89
+ SUMMARY = 'kramdown is a fast, pure-Ruby Markdown-superset converter.'
90
90
  DESCRIPTION = <<EOF
91
91
  kramdown is yet-another-markdown-parser but fast, pure Ruby,
92
92
  using a strict syntax definition and supporting several common extensions.
@@ -165,7 +165,7 @@ EOF
165
165
  end
166
166
 
167
167
  desc 'Release Kramdown version ' + Kramdown::VERSION
168
- task :release => [:clobber, :package, :publish_files, :publish_doc, :post_news]
168
+ task :release => [:clobber, :package, :publish_files, :publish_website, :post_news]
169
169
 
170
170
  if defined? RubyForge
171
171
  desc "Upload the release to Rubyforge"
@@ -202,7 +202,7 @@ EOF
202
202
  end
203
203
 
204
204
  desc "Upload the website to Rubyforge"
205
- task :publish_website => ['rdoc', :website] do
205
+ task :publish_website => ['doc'] do
206
206
  sh "rsync -avc --delete --exclude 'wiki' --exclude 'robots.txt' htmldoc/ gettalong@rubyforge.org:/var/www/gforge-projects/kramdown/"
207
207
  end
208
208
 
@@ -265,10 +265,10 @@ module Kramdown
265
265
  # Convert the content in +context+ to HTML.
266
266
  def call(context)
267
267
  extend Webgen::Loggable
268
- doc = ::Kramdown::Document.new(context.content, :auto_ids => true)
268
+ doc = ::Kramdown::Document.new(context.content)
269
269
  context.content = doc.to_html
270
270
  doc.warnings.each do |warn|
271
- log(:warn) { "Warning while parsing #{context.ref_node} with kramdown: #{warn}" }
271
+ log(:warn) { "Warning while parsing #{context.ref_node.alcn} with kramdown: #{warn}" }
272
272
  end
273
273
  context
274
274
  end