motiro 0.6.8 → 0.6.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (206) hide show
  1. data/AUTHORS +15 -0
  2. data/README +2 -2
  3. data/README.en +1 -2
  4. data/README.pt-br +1 -2
  5. data/app/controllers/account_controller.rb +1 -1
  6. data/app/controllers/application.rb +13 -12
  7. data/app/controllers/javascript_controller.rb +1 -1
  8. data/app/controllers/report_controller.rb +1 -1
  9. data/app/controllers/wiki_controller.rb +3 -5
  10. data/app/core/cache_reporter.rb +1 -1
  11. data/app/core/cache_reporter_fetcher.rb +1 -1
  12. data/app/core/chief_editor.rb +1 -1
  13. data/app/core/reporter.rb +1 -1
  14. data/app/core/reporter_driver.rb +1 -1
  15. data/app/core/reporter_fetcher.rb +1 -1
  16. data/app/core/settings.rb +1 -1
  17. data/app/core/version.rb +1 -1
  18. data/app/core/wiki_reporter.rb +1 -1
  19. data/app/helpers/application_helper.rb +5 -1
  20. data/app/helpers/default_page_provider.rb +6 -2
  21. data/app/helpers/report_helper.rb +14 -1
  22. data/app/models/change.rb +1 -1
  23. data/app/models/chunk.rb +1 -1
  24. data/app/models/feed_observer.rb +1 -1
  25. data/app/models/headline.rb +1 -1
  26. data/app/models/page.rb +38 -4
  27. data/app/models/revision.rb +1 -1
  28. data/app/models/user.rb +1 -1
  29. data/app/models/wiki_reference.rb +21 -0
  30. data/app/models/wiki_sweeper.rb +17 -2
  31. data/app/ports/chdir_runner.rb +1 -1
  32. data/app/ports/runner.rb +1 -1
  33. data/app/reporters/darcs_connection.rb +1 -1
  34. data/app/reporters/darcs_reporter.rb +1 -1
  35. data/app/reporters/darcs_temp_repo.rb +1 -1
  36. data/app/reporters/events_reporter.rb +1 -1
  37. data/app/reporters/features_reporter.rb +1 -1
  38. data/app/reporters/subversion_reporter.rb +1 -1
  39. data/app/reporters/svn_connection.rb +1 -1
  40. data/app/reporters/svn_settings.rb +1 -1
  41. data/app/views/report/list.rhtml +6 -7
  42. data/app/views/report/older.rhtml +1 -2
  43. data/app/views/report/rss.rxml +1 -1
  44. data/app/views/report/show.rhtml +2 -2
  45. data/app/views/wiki/_edit_event.rhtml +2 -0
  46. data/app/views/wiki/_edit_feature.rhtml +2 -0
  47. data/app/views/wiki/_properties_edit.rhtml +3 -5
  48. data/app/views/wiki/_properties_show.rhtml +4 -5
  49. data/app/views/wiki/_show_event.rhtml +3 -0
  50. data/app/views/wiki/_show_feature.rhtml +2 -0
  51. data/app/views/wiki/show.rhtml +1 -1
  52. data/bin/motiro +3 -3
  53. data/config/routes.rb +1 -1
  54. data/db/migrate/024_add_feature_status.rb +11 -0
  55. data/db/migrate/025_add_page_references.rb +12 -0
  56. data/db/migrate/026_convert_link_syntax.rb +12 -0
  57. data/db/migrate/027_register_page_references.rb +12 -0
  58. data/db/motirodb.sqlite.initial +0 -0
  59. data/db/schema_version +1 -1
  60. data/db/translation/pt-BR.rb +7 -1
  61. data/lib/array_extensions.rb +1 -1
  62. data/lib/diff_chunk_builder.rb +1 -1
  63. data/lib/differ.rb +1 -1
  64. data/lib/string_extensions.rb +13 -6
  65. data/lib/stub_hash.rb +1 -1
  66. data/lib/tasks/packaging.rake +10 -12
  67. data/lib/tasks/testing.rake +1 -1
  68. data/lib/tick_daemon.rb +1 -1
  69. data/lib/{wiki_url_generator.rb → wiki_link_handler.rb} +13 -3
  70. data/lib/wiki_renderer.rb +63 -34
  71. data/public/images/done.png +0 -0
  72. data/public/images/not-done.png +0 -0
  73. data/public/stylesheets/motiro.css +8 -0
  74. data/script/ticker +1 -1
  75. data/test/acceptance/account_test.rb +1 -1
  76. data/test/acceptance/darcs_test.rb +1 -1
  77. data/test/acceptance/events_test.rb +1 -1
  78. data/test/acceptance/main_page_test.rb +1 -1
  79. data/test/acceptance/subversion_test.rb +1 -1
  80. data/test/acceptance/ts_all_suites.rb +1 -1
  81. data/test/acceptance/wiki_test.rb +3 -3
  82. data/test/contract/darcs_test.rb +1 -1
  83. data/test/contract/remote_darcs_test.rb +1 -1
  84. data/test/contract/svn_test.rb +1 -1
  85. data/test/fixtures/pages.yml +20 -1
  86. data/test/fixtures/revisions.yml +40 -1
  87. data/test/fixtures/wiki_references.yml +5 -0
  88. data/test/functional/report_controller_test.rb +1 -1
  89. data/test/functional/report_features_test.rb +8 -1
  90. data/test/functional/report_subversion_test.rb +1 -1
  91. data/test/functional/root_controller_test.rb +1 -1
  92. data/test/functional/wiki_controller_test.rb +67 -2
  93. data/test/lib/acceptance_test_case.rb +1 -1
  94. data/test/lib/darcs_excerpts.rb +1 -1
  95. data/test/lib/darcs_repo.rb +1 -1
  96. data/test/lib/hash_extensions.rb +22 -0
  97. data/test/lib/live_mode_test.rb +1 -1
  98. data/test/lib/netutils.rb +1 -1
  99. data/test/lib/platform_thread.rb +1 -1
  100. data/test/lib/selenium_extensions.rb +1 -1
  101. data/test/lib/stubio.rb +1 -1
  102. data/test/lib/webserver.rb +1 -1
  103. data/test/meta/darcs_repo_test.rb +1 -1
  104. data/test/meta/local_svn_test.rb +1 -1
  105. data/test/meta/platform_thread_test.rb +1 -1
  106. data/test/meta/stubio_test.rb +1 -1
  107. data/test/stubs/{url_generator.rb → wiki_link_handler.rb} +8 -4
  108. data/test/test_helper.rb +3 -1
  109. data/test/unit/array_extensions_test.rb +1 -1
  110. data/test/unit/cache_reporter_fetcher_test.rb +1 -1
  111. data/test/unit/cache_reporter_test.rb +1 -1
  112. data/test/unit/change_test.rb +1 -1
  113. data/test/unit/chdir_runner_test.rb +1 -1
  114. data/test/unit/chief_editor_test.rb +1 -1
  115. data/test/unit/darcs_connection_test.rb +1 -1
  116. data/test/unit/darcs_reporter_test.rb +4 -4
  117. data/test/unit/darcs_temp_repo_test.rb +1 -1
  118. data/test/unit/default_page_provider_test.rb +23 -13
  119. data/test/unit/diff_chunk_builder_test.rb +1 -1
  120. data/test/unit/page_test.rb +67 -4
  121. data/test/unit/reporter_driver_test.rb +1 -1
  122. data/test/unit/reporter_test.rb +1 -1
  123. data/test/unit/revision_test.rb +1 -1
  124. data/test/unit/runner_test.rb +1 -1
  125. data/test/unit/string_extensions_test.rb +15 -3
  126. data/test/unit/svn_connection_test.rb +1 -1
  127. data/test/unit/svn_reporter_interaction_test.rb +1 -1
  128. data/test/unit/svn_reporter_test.rb +1 -1
  129. data/test/unit/svn_settings_test.rb +1 -1
  130. data/test/unit/user_test.rb +1 -1
  131. data/test/unit/{wiki_url_generator_test.rb → wiki_link_handler_test.rb} +3 -3
  132. data/test/unit/wiki_renderer_test.rb +75 -20
  133. data/test/unit/wiki_reporter_test.rb +1 -1
  134. data/vendor/mediacloth-trunk/MIT-LICENSE +20 -0
  135. data/vendor/mediacloth-trunk/README +32 -0
  136. data/vendor/mediacloth-trunk/Rakefile +33 -0
  137. data/vendor/mediacloth-trunk/lib/mediacloth/mediawikiast.rb +122 -0
  138. data/vendor/mediacloth-trunk/lib/mediacloth/mediawikihtmlgenerator.rb +252 -0
  139. data/vendor/mediacloth-trunk/lib/mediacloth/mediawikilexer.rb +821 -0
  140. data/vendor/mediacloth-trunk/lib/mediacloth/mediawikilinkhandler.rb +68 -0
  141. data/vendor/mediacloth-trunk/lib/mediacloth/mediawikiparams.rb +33 -0
  142. data/vendor/mediacloth-trunk/lib/mediacloth/mediawikiparser.rb +1218 -0
  143. data/vendor/mediacloth-trunk/lib/mediacloth/mediawikiparser.y +493 -0
  144. data/vendor/mediacloth-trunk/lib/mediacloth/mediawikiwalker.rb +146 -0
  145. data/vendor/mediacloth-trunk/lib/mediacloth.rb +29 -0
  146. data/vendor/mediacloth-trunk/mediacloth.gemspec +24 -0
  147. data/vendor/mediacloth-trunk/mediacloth.kdevelop +117 -0
  148. data/vendor/mediacloth-trunk/setup.rb +1585 -0
  149. data/vendor/mediacloth-trunk/test/data/html1 +26 -0
  150. data/vendor/mediacloth-trunk/test/data/html10 +130 -0
  151. data/vendor/mediacloth-trunk/test/data/html11 +17 -0
  152. data/vendor/mediacloth-trunk/test/data/html12 +12 -0
  153. data/vendor/mediacloth-trunk/test/data/html13 +11 -0
  154. data/vendor/mediacloth-trunk/test/data/html2 +2 -0
  155. data/vendor/mediacloth-trunk/test/data/html3 +1 -0
  156. data/vendor/mediacloth-trunk/test/data/html4 +47 -0
  157. data/vendor/mediacloth-trunk/test/data/html5 +57 -0
  158. data/vendor/mediacloth-trunk/test/data/html6 +8 -0
  159. data/vendor/mediacloth-trunk/test/data/html7 +45 -0
  160. data/vendor/mediacloth-trunk/test/data/html8 +1 -0
  161. data/vendor/mediacloth-trunk/test/data/html9 +14 -0
  162. data/vendor/mediacloth-trunk/test/data/input1 +34 -0
  163. data/vendor/mediacloth-trunk/test/data/input10 +124 -0
  164. data/vendor/mediacloth-trunk/test/data/input11 +17 -0
  165. data/vendor/mediacloth-trunk/test/data/input12 +15 -0
  166. data/vendor/mediacloth-trunk/test/data/input13 +10 -0
  167. data/vendor/mediacloth-trunk/test/data/input2 +2 -0
  168. data/vendor/mediacloth-trunk/test/data/input3 +2 -0
  169. data/vendor/mediacloth-trunk/test/data/input4 +50 -0
  170. data/vendor/mediacloth-trunk/test/data/input5 +63 -0
  171. data/vendor/mediacloth-trunk/test/data/input6 +8 -0
  172. data/vendor/mediacloth-trunk/test/data/input7 +45 -0
  173. data/vendor/mediacloth-trunk/test/data/input8 +1 -0
  174. data/vendor/mediacloth-trunk/test/data/input9 +14 -0
  175. data/vendor/mediacloth-trunk/test/data/lex1 +26 -0
  176. data/vendor/mediacloth-trunk/test/data/lex10 +85 -0
  177. data/vendor/mediacloth-trunk/test/data/lex11 +17 -0
  178. data/vendor/mediacloth-trunk/test/data/lex12 +15 -0
  179. data/vendor/mediacloth-trunk/test/data/lex13 +3 -0
  180. data/vendor/mediacloth-trunk/test/data/lex2 +2 -0
  181. data/vendor/mediacloth-trunk/test/data/lex3 +1 -0
  182. data/vendor/mediacloth-trunk/test/data/lex4 +47 -0
  183. data/vendor/mediacloth-trunk/test/data/lex5 +57 -0
  184. data/vendor/mediacloth-trunk/test/data/lex6 +8 -0
  185. data/vendor/mediacloth-trunk/test/data/lex7 +45 -0
  186. data/vendor/mediacloth-trunk/test/data/lex8 +1 -0
  187. data/vendor/mediacloth-trunk/test/data/lex9 +14 -0
  188. data/vendor/mediacloth-trunk/test/data/result1 +48 -0
  189. data/vendor/mediacloth-trunk/test/dataproducers/html.rb +18 -0
  190. data/vendor/mediacloth-trunk/test/dataproducers/lex.rb +15 -0
  191. data/vendor/mediacloth-trunk/test/debugwalker.rb +68 -0
  192. data/vendor/mediacloth-trunk/test/htmlgenerator.rb +97 -0
  193. data/vendor/mediacloth-trunk/test/lexer.rb +542 -0
  194. data/vendor/mediacloth-trunk/test/linkhandler.rb +39 -0
  195. data/vendor/mediacloth-trunk/test/parser.rb +22 -0
  196. data/vendor/mediacloth-trunk/test/testhelper.rb +27 -0
  197. data/vendor/mediacloth.rb +3 -0
  198. data/vendor/motiro-installer.rb +1 -1
  199. data/vendor/plugins/cache_test-0.2/CHANGELOG +14 -0
  200. data/vendor/plugins/cache_test-0.2/MIT-LICENSE +20 -0
  201. data/vendor/plugins/cache_test-0.2/README +124 -0
  202. data/vendor/plugins/cache_test-0.2/init.rb +8 -0
  203. data/vendor/plugins/cache_test-0.2/lib/fragment_cache_test.rb +205 -0
  204. data/vendor/plugins/cache_test-0.2/lib/page_cache_test.rb +140 -0
  205. data/vendor/plugins/global_routing/init.rb +1 -1
  206. metadata +517 -455
@@ -0,0 +1,26 @@
1
+ <p>This is a simple text with <b>Bold text</b> and <i>Italic text</i> inside.
2
+ One paragraph can be written in several lines.
3
+
4
+ </p><p>Another paragraph starts after a blank line.
5
+
6
+ </p><p>
7
+ Another one.
8
+
9
+ </p><p>This is text with <a href="javascript:void(0)">Internal Link</a> and <a href="http://www.example.com">external link</a>.
10
+
11
+ </p><p>We can have headlines:
12
+
13
+ </p><h1><a name='Headline1'></a> Headline1 </h1><h2><a name='Headline2'></a> Headline2 </h2><h3><a name='Headline3'></a> Headline3 </h3><h4><a name='Headline4'></a> Headline4 </h4><h5><a name='Headline5'></a> Headline5 </h5><h6><a name='Headline6'></a> Headline6 </h6><h7><a name='Headline7'></a> Headline7 </h7><p>
14
+
15
+ </p><p>Headlines may have formatting:
16
+
17
+ </p><h1><a name='See_for_more_info'></a> See <a href="javascript:void(0)">Internal Link</a> for more info </h1><h2><a name='This_is_an_important_heading'></a> This is an <b>important</b> heading </h2><p>
18
+
19
+ </p><pre> This is a preformatted <b> </b> &lt;&lt; <i> </i> text
20
+ yes
21
+ </pre><hr></hr><p>
22
+ This is a text after the line.
23
+
24
+ </p><ul><li>foo
25
+ </li><li> foo2
26
+ </li></ul>
@@ -0,0 +1,130 @@
1
+ <p>Some examples of tables.
2
+
3
+ </p><table></table>
4
+ <p>
5
+
6
+ </p><table><tr></tr>
7
+ </table>
8
+ <p>
9
+
10
+ </p><table><tr><td> a
11
+ </td><td> b
12
+ </td></tr>
13
+ </table>
14
+ <p>
15
+
16
+ </p><table><tr><td> a
17
+ </td><td> b
18
+ </td></tr>
19
+ <tr><td> 1
20
+ </td><td> 2
21
+ </td></tr>
22
+ </table>
23
+ <p>
24
+
25
+ </p><table><tr><td> a </td><td> b
26
+ </td></tr>
27
+ <tr><td> 1 </td><td> 2
28
+ </td></tr>
29
+ </table>
30
+ <p>
31
+
32
+ </p><table><tr><th> a
33
+ </th><th> b
34
+ </th></tr>
35
+ <tr><td> 1
36
+ </td><td> 2
37
+ </td></tr>
38
+ </table>
39
+ <p>
40
+
41
+ </p><table><tr><th> a </th><th> b
42
+ </th></tr>
43
+ <tr><td> 1 </td><td> 2
44
+ </td></tr>
45
+ </table>
46
+ <p>
47
+
48
+ </p><table><tr><td> a
49
+ </td></tr>
50
+ <tr><td> 1
51
+ </td><td> 2
52
+ </td></tr>
53
+ </table>
54
+ <p>
55
+
56
+ </p><table><tr><td> a
57
+ </td><td> b
58
+ </td></tr>
59
+ <tr><td> 1
60
+ </td></tr>
61
+ </table>
62
+ <p>
63
+
64
+ </p><table><tr><td> a
65
+ </td><td> b
66
+ </td></tr>
67
+ <tr><td></td><td> 2
68
+ </td></tr>
69
+ </table>
70
+ <p>
71
+
72
+ </p><table><tr><td> <a href="http://example.com">Example</a></td><td> <b>bold</b></td></tr>
73
+ <tr><td> <a href="javascript:void(0)">Example</a></td><td> <a href="javascript:void(0)">image:example.jpg(1, 2, 3)</a></td></tr>
74
+ </table>
75
+ <p>
76
+
77
+ </p><table><tr><td> <a href="http://example.com">Example</a></td><td> <b>bold
78
+ </b></td></tr>
79
+ <tr><td> <a href="javascript:void(0)">Example</a></td><td> <b>bold <i>italic
80
+ </i></b></td></tr>
81
+ </table>
82
+ <p>
83
+
84
+ </p><table><tr><td> a
85
+ </td><td> b
86
+ </td></tr>
87
+ <tr><td> A list in a cell:
88
+ <ul><li> one
89
+ </li><li> two
90
+ </li></ul></td></tr>
91
+ </table>
92
+ <p>
93
+
94
+ </p><table><tr><td> a
95
+ </td><td> b
96
+ </td></tr>
97
+ <tr><td> A table in a cell:
98
+ <table><tr><td> 1
99
+ </td><td> 2
100
+ </td></tr>
101
+ <tr><td> one
102
+ </td><td> two
103
+ </td></tr>
104
+ </table>
105
+ </td></tr>
106
+ </table>
107
+ <p>
108
+
109
+ </p><table border="1"><tr><th> a
110
+ </th><th> b
111
+ </th></tr>
112
+ <tr align="left"><td> 1
113
+ </td><td> 2
114
+ </td></tr>
115
+ </table>
116
+ <p>
117
+
118
+ </p><p>
119
+ Text before
120
+ </p><table><tr><td> a
121
+ </td><td> b
122
+ </td></tr>
123
+ </table>
124
+ <p>
125
+
126
+ </p><p>Text before with <i>italic
127
+ </i></p><table><tr><td> a
128
+ </td><td> b
129
+ </td></tr>
130
+ </table>
@@ -0,0 +1,17 @@
1
+ <h2><a name='Examples_of_XHTML_markup_and_escaping_of_XML_characters'></a>Examples of XHTML markup and escaping of XML characters</h2><p>
2
+
3
+ </p><p>Here is a <tt>code sample</tt>.
4
+
5
+ </p><p>Another <tt class="code">code sample</tt>.
6
+
7
+ </p><p>An example of a &lt;tt&gt;code sample&lt;/tt&gt;.
8
+
9
+ </p><p>Some math:
10
+
11
+ </p><pre> 1 &lt; 2 &amp; 1 &gt; 0
12
+ </pre><p>
13
+ And more text.
14
+
15
+ </p><ul><li> one
16
+ </li><li> two <span>a b
17
+ c d e f</span></li></ul>
@@ -0,0 +1,12 @@
1
+ <p>one &amp; two
2
+ 1 &lt; 2
3
+ &lt;lt; is the &quot;lt&quot; symbol
4
+ 1 &lt; 2 &amp; 3 &gt; 2
5
+
6
+ </p><p>this &lt;&gt; that
7
+
8
+ </p><p>
9
+
10
+ </p><p>
11
+
12
+ </p><p>{{}}</p>
@@ -0,0 +1,11 @@
1
+ <ul><li>1 <a href='#Headline1'> Headline1 </a></li>
2
+ <ul><li>1.1 <a href='#Sub_Headline_1a'> Sub Headline 1a </a></li>
3
+ <li>1.2 <a href='#Sub_Headline_1b'> Sub Headline 1b </a></li>
4
+ </ul><li>2 <a href='#Headline2'> Headline2 </a></li>
5
+ <ul><li>2.1 <a href='#Sub_Headline_2a'> Sub Headline 2a </a></li>
6
+ <ul><li>2.1.1 <a href='#Sub_Sub_Headline_2i'> Sub Sub Headline <i>2i</i> </a></li>
7
+ <li>2.1.2 <a href='#Sub_Sub_Headline_2ii'> Sub Sub Headline <b>2ii</b> </a></li>
8
+ </ul><li>2.2 <a href='#Sub_Headline_2b'> Sub Headline 2b </a></li>
9
+ </ul></ul><p>
10
+
11
+ </p><h1><a name='Headline1'></a> Headline1 </h1><h2><a name='Sub_Headline_1a'></a> Sub Headline 1a </h2><h2><a name='Sub_Headline_1b'></a> Sub Headline 1b </h2><h1><a name='Headline2'></a> Headline2 </h1><h2><a name='Sub_Headline_2a'></a> Sub Headline 2a </h2><h3><a name='Sub_Sub_Headline_2i'></a> Sub Sub Headline <i>2i</i> </h3><h3><a name='Sub_Sub_Headline_2ii'></a> Sub Sub Headline <b>2ii</b> </h3><h2><a name='Sub_Headline_2b'></a> Sub Headline 2b </h2>
@@ -0,0 +1,2 @@
1
+ <hr></hr><p>
2
+ This is a text</p>
@@ -0,0 +1 @@
1
+ <p>--Sat Jan 01 01:01:01 UTC 2000CreatorCreator Sat Jan 01 01:01:01 UTC 2000</p>
@@ -0,0 +1,47 @@
1
+ <p>Test mixing of bold and italic formatting:
2
+
3
+ </p><p><i>italic<b>bold</b>italic</i>
4
+
5
+ </p><p><b>bold<i>italic</i>bold</b>
6
+
7
+ </p><p><i><b>boldalic</b></i>
8
+
9
+ </p><p><i>italic<b>bold</b>italic</i><b>bold<i>italic</i>bold</b>
10
+
11
+ </p><p>
12
+ Test bold and italic wrapped around inline links:
13
+
14
+ </p><p><i><a href="http://example.com">http://example.com</a></i>
15
+
16
+ </p><p><b><a href="http://example.com">http://example.com</a></b>
17
+
18
+ </p><p><i><a href="http://example.com">http://example.com</a><b>
19
+
20
+ </b></i></p><p><b><a href="http://example.com">http://example.com</a>' is good</b>
21
+
22
+ </p><p><i><a href="http://example.com">http://example.com</a>' is good</i>
23
+
24
+ </p><p>
25
+ Test unclosed bold and italic formatting:
26
+
27
+ </p><p><i>Some italic and now </i>bold
28
+ </p><h2><a name='Heading'></a>Heading</h2><p>
29
+ Text
30
+
31
+ </p><p><i>Some italic and now <b>bold
32
+ </b></i></p><h2><a name='Heading'></a>Heading</h2><p>
33
+ Text
34
+
35
+ </p><p><i>Some italic and now <b>bold
36
+
37
+ </b></i></p><h2><a name='Heading'></a>Heading</h2><p>
38
+ Text
39
+
40
+ </p><p><i>Some italic and now <b>bold
41
+ </b></i></p><ul><li> one
42
+ </li><li> two
43
+ </li></ul><p>
44
+
45
+ </p><p><i>Some italic and now <b>bold
46
+
47
+ </b></i></p><p>Text</p>
@@ -0,0 +1,57 @@
1
+ <p>Unordered lists
2
+
3
+ </p><ul><li>A
4
+ <ul><li>A
5
+ <ul><li>a
6
+ </li><li>b
7
+ <ul><li>a
8
+ </li></ul></li></ul></li></ul></li><li>B
9
+ <ul><li>b
10
+ </li></ul></li></ul><ul><li>A
11
+ </li><li>B
12
+ </li><li></li></ul><p>
13
+ Ordered lists
14
+
15
+ </p><ol><li>a
16
+ <ol><li>a
17
+ <ol><li>a
18
+ <ol><li>a
19
+ </li></ol></li></ol></li></ol></li><li>a
20
+ <ol><li>aa
21
+ </li></ol></li></ol><ol><li>A
22
+ </li><li>B
23
+ </li><li></li></ol><p>
24
+ Mixed lists
25
+
26
+ </p><ul><li>a
27
+ <ol><li>1
28
+ </li><li>2
29
+ </li></ol></li><li>b
30
+ </li></ul><ol><li>a
31
+ <ul><li>1
32
+ </li><li>2
33
+ <ul><li>2
34
+ </li></ul></li></ul></li><li>b
35
+ </li></ol><p>
36
+ Dictionary lists
37
+
38
+ </p><dl><dt>d
39
+ </dt></dl><p>
40
+
41
+ </p><dl><dd>t
42
+ </dd></dl><p>
43
+
44
+ </p><dl><dt>d
45
+ </dt><dd>t
46
+ </dd></dl><p>
47
+
48
+ </p><dl><dt>d
49
+ </dt><dd>t
50
+ </dd><dd>t
51
+ </dd></dl><p>
52
+
53
+ </p><dl><dt>d
54
+ </dt><dd>t
55
+ </dd></dl><dl><dt>d
56
+ </dt><dd>t
57
+ </dd></dl><dl><dt>d </dt><dd>t <a href="javascript:void(0)">image:foo.jpg()</a></dd></dl>
@@ -0,0 +1,8 @@
1
+ <p>This is some text with <b>bold</b> and <i>italic</i> formating.
2
+ The list is also here:
3
+ </p><ul><li> List Item 1
4
+ <ul><li> Sub list item 1
5
+ </li><li> Sub list item 2
6
+ </li></ul></li><li> List Item 2
7
+ </li></ul><p>The end
8
+ </p><hr></hr>
@@ -0,0 +1,45 @@
1
+ <p><a href="http://sun.com">http://sun.com</a>
2
+
3
+ </p><p><a href="http://sun.com">http://sun.com</a>
4
+
5
+ </p><p><a href="mailto:joe@sun.com">mailto:joe@sun.com</a>
6
+
7
+ </p><p><a href="http://sun.com">stars</a>
8
+
9
+ </p><p><a href="http://sun.com">stars and moon</a>
10
+
11
+ </p><p><a href="http://sun.com">stars and <i>moon</i> and <b>trees</b> and birds</a>
12
+
13
+ </p><p><a href="http://sun.com"><tt>sun</tt> and <tt>moon</tt></a>
14
+
15
+ </p><p><a href="http://sun.com">sun &gt; moon</a>
16
+
17
+ </p><p><a href="javascript:void(0)">sun</a>
18
+
19
+ </p><p><a href="javascript:void(0)">All about Sun</a>
20
+
21
+ </p><p><a href="javascript:void(0)">image:sun(All about Sun)</a>
22
+
23
+ </p><p><a href="javascript:void(0)">nofollow|All about Sun</a>
24
+
25
+ </p><p><a href="javascript:void(0)">nofollow|Sun &gt; Moon</a>
26
+
27
+ </p><p><a href="javascript:void(0)">nofollow|<tt>sun</tt> and <tt>moon</tt></a>
28
+
29
+ </p><p><a href="javascript:void(0)">image:sun(nofollow, All about Sun)</a>
30
+
31
+ </p><p><a href="javascript:void(0)">image:sun(All about <a href="javascript:void(0)">Sun</a>)</a>
32
+
33
+ </p><p><a href="javascript:void(0)">image:sun(All about <a href="javascript:void(0)">More about</a>)</a>
34
+
35
+ </p><p><a href="javascript:void(0)">image:sun(one, two, three)</a>
36
+
37
+ </p><p><a href="javascript:void(0)">image:sun(one, <a href="javascript:void(0)">bbb|ccc</a>, <a href="javascript:void(0)">image:moon(aaa, bbb, ccc)</a>, two)</a>
38
+
39
+ </p><p>[]
40
+
41
+ </p><p>[ ]
42
+
43
+ </p><p>[[]]
44
+
45
+ </p><p><a href="javascript:void(0)"> </a></p>
@@ -0,0 +1 @@
1
+ <h3><a name='foo'></a> foo </h3>
@@ -0,0 +1,14 @@
1
+ <p>Some examples of wiki escaping.
2
+
3
+ </p><p>A paragraph with some wiki characters: ''italic'' '''bold''' [[Link]]
4
+
5
+ </p><p>An escaped list:
6
+
7
+ * one
8
+ * two
9
+ * three
10
+
11
+
12
+ </p><p>Text escaped in a heading:
13
+
14
+ </p><h2><a name='Heading_with_''''></a>Heading with '''</h2>
@@ -0,0 +1,34 @@
1
+ This is a simple text with '''Bold text''' and ''Italic text'' inside.
2
+ One paragraph can be written in several lines.
3
+
4
+ Another paragraph starts after a blank line.
5
+
6
+
7
+ Another one.
8
+
9
+ This is text with [[Internal Link]] and [http://www.example.com external link].
10
+
11
+ We can have headlines:
12
+
13
+
14
+ = Headline1 =
15
+ == Headline2 ==
16
+ === Headline3 ===
17
+ ==== Headline4 ====
18
+ ===== Headline5 =====
19
+ ====== Headline6 ======
20
+ ======= Headline7 =======
21
+
22
+ Headlines may have formatting:
23
+
24
+ = See [[Internal Link]] for more info =
25
+ == This is an '''important''' heading ==
26
+
27
+ This is a preformatted ''' ''' << '' '' text
28
+ yes
29
+
30
+ ----
31
+ This is a text after the line.
32
+
33
+ *foo
34
+ * foo2
@@ -0,0 +1,124 @@
1
+ Some examples of tables.
2
+
3
+ {|
4
+ |}
5
+
6
+ {|
7
+ |-
8
+ |}
9
+
10
+ {|
11
+ | a
12
+ | b
13
+ |}
14
+
15
+ {|
16
+ | a
17
+ | b
18
+ |-
19
+ | 1
20
+ | 2
21
+ |}
22
+
23
+ {|
24
+ | a || b
25
+ |-
26
+ | 1 || 2
27
+ |}
28
+
29
+ {|
30
+ ! a
31
+ ! b
32
+ |-
33
+ | 1
34
+ | 2
35
+ |}
36
+
37
+ {|
38
+ ! a || b
39
+ |-
40
+ | 1 || 2
41
+ |}
42
+
43
+ {|
44
+ | a
45
+ |-
46
+ | 1
47
+ | 2
48
+ |}
49
+
50
+ {|
51
+ | a
52
+ | b
53
+ |-
54
+ | 1
55
+ |}
56
+
57
+ {|
58
+ | a
59
+ | b
60
+ |-
61
+ |
62
+ | 2
63
+ |}
64
+
65
+ {|
66
+ | [http://example.com Example]
67
+ | '''bold'''
68
+ |-
69
+ | [[example|Example]]
70
+ | [[image:example.jpg|1|2|3]]
71
+ |}
72
+
73
+ {|
74
+ | [http://example.com Example
75
+ | '''bold
76
+ |-
77
+ | [[example|Example
78
+ | '''bold ''italic
79
+ |}
80
+
81
+ {|
82
+ | a
83
+ | b
84
+ |-
85
+ | A list in a cell:
86
+ * one
87
+ * two
88
+ |}
89
+
90
+ {|
91
+ | a
92
+ | b
93
+ |-
94
+ | A table in a cell:
95
+ {|
96
+ | 1
97
+ | 2
98
+ |-
99
+ | one
100
+ | two
101
+ |}
102
+ |}
103
+
104
+
105
+ {| border="1"
106
+ ! a
107
+ ! b
108
+ |- align="left"
109
+ | 1
110
+ | 2
111
+ |}
112
+
113
+
114
+ Text before
115
+ {|
116
+ | a
117
+ | b
118
+ |}
119
+
120
+ Text before with ''italic
121
+ {|
122
+ | a
123
+ | b
124
+ |}
@@ -0,0 +1,17 @@
1
+ ==Examples of XHTML markup and escaping of XML characters==
2
+
3
+ Here is a <tt>code sample</tt>.
4
+
5
+ Another <tt class='code'>code sample</tt>.
6
+
7
+ An example of a <nowiki><tt>code sample</tt></nowiki>.
8
+
9
+ Some math:
10
+
11
+ 1 < 2 & 1 > 0
12
+
13
+ And more text.
14
+
15
+ * one
16
+ * two <span>a b
17
+ c d e f</span>
@@ -0,0 +1,15 @@
1
+ one &amp; two
2
+ 1 &lt; 2
3
+ &lt;lt; is the "lt" symbol
4
+ 1 < 2 & 3 > 2
5
+
6
+ this &lt;&gt; that
7
+
8
+ {{ref}}
9
+
10
+ {{
11
+ one
12
+ two
13
+ }}
14
+
15
+ {{}}
@@ -0,0 +1,10 @@
1
+ __TOC__
2
+
3
+ = Headline1 =
4
+ == Sub Headline 1a ==
5
+ == Sub Headline 1b ==
6
+ = Headline2 =
7
+ == Sub Headline 2a ==
8
+ === Sub Sub Headline <i>2i</i> ===
9
+ === Sub Sub Headline '''2ii''' ===
10
+ == Sub Headline 2b ==
@@ -0,0 +1,2 @@
1
+ ----
2
+ This is a text
@@ -0,0 +1,2 @@
1
+ --~~~~~~~~
2
+ ~~~~
@@ -0,0 +1,50 @@
1
+ Test mixing of bold and italic formatting:
2
+
3
+ ''italic'''bold'''italic''
4
+
5
+ '''bold''italic''bold'''
6
+
7
+ '''''boldalic'''''
8
+
9
+ ''italic'''bold'''italic'''''bold''italic''bold'''
10
+
11
+
12
+ Test bold and italic wrapped around inline links:
13
+
14
+ ''http://example.com''
15
+
16
+ '''http://example.com'''
17
+
18
+ ''http://example.com'''
19
+
20
+ '''http://example.com' is good'''
21
+
22
+ ''http://example.com' is good''
23
+
24
+
25
+ Test unclosed bold and italic formatting:
26
+
27
+ ''Some italic and now ''bold
28
+ ==Heading==
29
+ Text
30
+
31
+
32
+ ''Some italic and now '''bold
33
+ ==Heading==
34
+ Text
35
+
36
+
37
+ ''Some italic and now '''bold
38
+
39
+ ==Heading==
40
+ Text
41
+
42
+
43
+ ''Some italic and now '''bold
44
+ * one
45
+ * two
46
+
47
+
48
+ ''Some italic and now '''bold
49
+
50
+ Text