docgenerator-creole 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/examples/creole_example.rb +76 -0
- data/examples/creole_example_footnote.rb +66 -0
- data/examples/creole_example_new_plugin.rb +51 -0
- data/examples/creole_example_placeholder.rb +77 -0
- data/examples/creole_example_rail.rb +155 -0
- data/examples/creole_example_rubycode.rb +144 -0
- data/examples/creole_example_struktex.rb +170 -0
- data/examples/creole_example_tabular.rb +96 -0
- data/examples/creole_example_tikz.rb +47 -0
- data/lib/docgenerator-creole.rb +5 -0
- data/lib/docgenerator/creole.rb +15 -0
- data/lib/docgenerator/creole/base.rb +170 -0
- data/lib/docgenerator/creole/characters.rb +131 -0
- data/lib/docgenerator/creole/creole.rb +708 -0
- data/lib/docgenerator/creole/document.rb +91 -0
- data/lib/docgenerator/creole/inclusion_and_plugins.rb +91 -0
- data/lib/docgenerator/creole/inclusions.rb +148 -0
- data/lib/docgenerator/creole/placeholder.rb +242 -0
- data/lib/docgenerator/creole/plugins.rb +230 -0
- data/lib/docgenerator/creole/plugins/index.rb +61 -0
- data/lib/docgenerator/creole/plugins/rail.rb +179 -0
- data/lib/docgenerator/creole/plugins/rubycode4creole.rb +136 -0
- data/lib/docgenerator/creole/plugins/struktex.rb +60 -0
- data/lib/docgenerator/creole/plugins/tikz.rb +93 -0
- data/lib/docgenerator/creole/plugins/todonotes.rb +77 -0
- data/lib/docgenerator/creole/tabular.rb +405 -0
- data/readme.rdoc +44 -0
- data/unittest/Red_Flower.jpg +0 -0
- data/unittest/expected_creole/test_creole.html +3 -0
- data/unittest/expected_creole/test_creole_characters_all.creole +28 -0
- data/unittest/expected_creole/test_creole_characters_all.html +18 -0
- data/unittest/expected_creole/test_creole_characters_all.latex +36 -0
- data/unittest/expected_creole/test_creole_characters_special.html +10 -0
- data/unittest/expected_creole/test_creole_characters_special.latex +18 -0
- data/unittest/expected_creole/test_creole_comment.context +11 -0
- data/unittest/expected_creole/test_creole_comment.creole +12 -0
- data/unittest/expected_creole/test_creole_comment.html +9 -0
- data/unittest/expected_creole/test_creole_comment.latex +11 -0
- data/unittest/expected_creole/test_creole_countdown.html +3 -0
- data/unittest/expected_creole/test_creole_countdown.latex +4 -0
- data/unittest/expected_creole/test_creole_creole1.0test.html +182 -0
- data/unittest/expected_creole/test_creole_creole1.0test.latex +253 -0
- data/unittest/expected_creole/test_creole_creole1.0test.text +160 -0
- data/unittest/expected_creole/test_creole_footnotes.html +9 -0
- data/unittest/expected_creole/test_creole_footnotes.latex +14 -0
- data/unittest/expected_creole/test_creole_footnotes_groupid.html +15 -0
- data/unittest/expected_creole/test_creole_footnotes_label.html +9 -0
- data/unittest/expected_creole/test_creole_headings.html +17 -0
- data/unittest/expected_creole/test_creole_headings.latex +19 -0
- data/unittest/expected_creole/test_creole_headings.text +48 -0
- data/unittest/expected_creole/test_creole_headings.wiki +37 -0
- data/unittest/expected_creole/test_creole_hr.html +7 -0
- data/unittest/expected_creole/test_creole_hr.latex +9 -0
- data/unittest/expected_creole/test_creole_hr.text +4 -0
- data/unittest/expected_creole/test_creole_ignore.html +3 -0
- data/unittest/expected_creole/test_creole_ignore.latex +4 -0
- data/unittest/expected_creole/test_creole_ignore.text +2 -0
- data/unittest/expected_creole/test_creole_inline.html +3 -0
- data/unittest/expected_creole/test_creole_inline.latex +4 -0
- data/unittest/expected_creole/test_creole_inline.text +2 -0
- data/unittest/expected_creole/test_creole_inline_apostroph.html +7 -0
- data/unittest/expected_creole/test_creole_inline_apostroph.latex +9 -0
- data/unittest/expected_creole/test_creole_inline_apostroph.text +5 -0
- data/unittest/expected_creole/test_creole_inline_ruby.html +12 -0
- data/unittest/expected_creole/test_creole_inline_ruby.latex +20 -0
- data/unittest/expected_creole/test_creole_inline_ruby_raw.html +6 -0
- data/unittest/expected_creole/test_creole_inline_ruby_raw.latex +8 -0
- data/unittest/expected_creole/test_creole_input.normsource +22 -0
- data/unittest/expected_creole/test_creole_input.normsource_1.8 +23 -0
- data/unittest/expected_creole/test_creole_input_file_simple.html +15 -0
- data/unittest/expected_creole/test_creole_input_file_simple_readlines.html +15 -0
- data/unittest/expected_creole/test_creole_label.html +12 -0
- data/unittest/expected_creole/test_creole_label.latex +15 -0
- data/unittest/expected_creole/test_creole_line_break.html +6 -0
- data/unittest/expected_creole/test_creole_line_break.latex +8 -0
- data/unittest/expected_creole/test_creole_links_explicit_internal.html +6 -0
- data/unittest/expected_creole/test_creole_links_explicit_internal.text +4 -0
- data/unittest/expected_creole/test_creole_links_explicit_with_em.html +3 -0
- data/unittest/expected_creole/test_creole_links_explicit_with_em.latex +4 -0
- data/unittest/expected_creole/test_creole_links_explicit_with_em.text +2 -0
- data/unittest/expected_creole/test_creole_links_external.html +6 -0
- data/unittest/expected_creole/test_creole_links_external.latex +8 -0
- data/unittest/expected_creole/test_creole_links_external.text +4 -0
- data/unittest/expected_creole/test_creole_links_external_implicit.html +9 -0
- data/unittest/expected_creole/test_creole_links_external_implicit.latex +12 -0
- data/unittest/expected_creole/test_creole_links_external_implicit.text +6 -0
- data/unittest/expected_creole/test_creole_links_file.html +6 -0
- data/unittest/expected_creole/test_creole_links_file.latex +8 -0
- data/unittest/expected_creole/test_creole_links_file.text +4 -0
- data/unittest/expected_creole/test_creole_links_implicit_end.creole +4 -0
- data/unittest/expected_creole/test_creole_links_implicit_end.html +3 -0
- data/unittest/expected_creole/test_creole_links_implicit_end.latex +4 -0
- data/unittest/expected_creole/test_creole_list_ol.html +12 -0
- data/unittest/expected_creole/test_creole_list_ol.latex +22 -0
- data/unittest/expected_creole/test_creole_list_ol_after_ul.html +12 -0
- data/unittest/expected_creole/test_creole_list_ol_after_ul.latex +20 -0
- data/unittest/expected_creole/test_creole_list_ol_after_ul.text +6 -0
- data/unittest/expected_creole/test_creole_list_ol_ul.html +15 -0
- data/unittest/expected_creole/test_creole_list_ol_ul.latex +26 -0
- data/unittest/expected_creole/test_creole_list_ul.html +22 -0
- data/unittest/expected_creole/test_creole_list_ul.latex +40 -0
- data/unittest/expected_creole/test_creole_list_ul.normsource +85 -0
- data/unittest/expected_creole/test_creole_list_ul.normsource_1.8 +83 -0
- data/unittest/expected_creole/test_creole_list_ul_too_much.html +24 -0
- data/unittest/expected_creole/test_creole_list_ul_too_much.latex +44 -0
- data/unittest/expected_creole/test_creole_list_ulul_without_ul.html +6 -0
- data/unittest/expected_creole/test_creole_list_ulul_without_ul.latex +12 -0
- data/unittest/expected_creole/test_creole_mix_titles_list.html +10 -0
- data/unittest/expected_creole/test_creole_mix_titles_list.latex +18 -0
- data/unittest/expected_creole/test_creole_mix_titles_list.text +12 -0
- data/unittest/expected_creole/test_creole_newline.html +9 -0
- data/unittest/expected_creole/test_creole_newline.latex +11 -0
- data/unittest/expected_creole/test_creole_newline.text +7 -0
- data/unittest/expected_creole/test_creole_paragraphs.html +6 -0
- data/unittest/expected_creole/test_creole_paragraphs.latex +8 -0
- data/unittest/expected_creole/test_creole_paragraphs.normsource +26 -0
- data/unittest/expected_creole/test_creole_paragraphs.normsource_1.8 +27 -0
- data/unittest/expected_creole/test_creole_paragraphs.text +4 -0
- data/unittest/expected_creole/test_creole_paragraphs.wiki +4 -0
- data/unittest/expected_creole/test_creole_paragraphs_wrap.html +5 -0
- data/unittest/expected_creole/test_creole_paragraphs_wrap.latex +6 -0
- data/unittest/expected_creole/test_creole_paragraphs_wrap.text +4 -0
- data/unittest/expected_creole/test_creole_paragraphs_wrap.wiki +4 -0
- data/unittest/expected_creole/test_creole_paragraphs_wrap0.html +9 -0
- data/unittest/expected_creole/test_creole_paragraphs_wrap0.latex +11 -0
- data/unittest/expected_creole/test_creole_paragraphs_wrap0.text +7 -0
- data/unittest/expected_creole/test_creole_paragraphs_wrap0.wiki +7 -0
- data/unittest/expected_creole/test_creole_paragraphs_wrap60.html +5 -0
- data/unittest/expected_creole/test_creole_paragraphs_wrap60.latex +6 -0
- data/unittest/expected_creole/test_creole_paragraphs_wrap60.text +4 -0
- data/unittest/expected_creole/test_creole_paragraphs_wrap60.wiki +4 -0
- data/unittest/expected_creole/test_creole_paragraphs_wrap_with_linebreaks.html +5 -0
- data/unittest/expected_creole/test_creole_paragraphs_wrap_with_linebreaks.latex +6 -0
- data/unittest/expected_creole/test_creole_paragraphs_wrap_with_linebreaks.text +4 -0
- data/unittest/expected_creole/test_creole_paragraphs_wrap_with_linebreaks.wiki +4 -0
- data/unittest/expected_creole/test_creole_picture_link.html +6 -0
- data/unittest/expected_creole/test_creole_pictures.html +10 -0
- data/unittest/expected_creole/test_creole_pictures.latex +13 -0
- data/unittest/expected_creole/test_creole_pictures_css.html +6 -0
- data/unittest/expected_creole/test_creole_pictures_css.latex +8 -0
- data/unittest/expected_creole/test_creole_pictures_imgclass.html +6 -0
- data/unittest/expected_creole/test_creole_pictures_imgclass.latex +8 -0
- data/unittest/expected_creole/test_creole_pictures_longdesc.html +3 -0
- data/unittest/expected_creole/test_creole_pictures_width.html +3 -0
- data/unittest/expected_creole/test_creole_pictures_width.latex +4 -0
- data/unittest/expected_creole/test_creole_placeholders_html.html +7 -0
- data/unittest/expected_creole/test_creole_placeholders_html.latex +8 -0
- data/unittest/expected_creole/test_creole_placeholders_html.text +4 -0
- data/unittest/expected_creole/test_creole_placeholders_latex.html +6 -0
- data/unittest/expected_creole/test_creole_placeholders_latex.latex +9 -0
- data/unittest/expected_creole/test_creole_placeholders_latex.text +4 -0
- data/unittest/expected_creole/test_creole_short_html.html +3 -0
- data/unittest/expected_creole/test_creole_short_html.latex +4 -0
- data/unittest/expected_creole/test_creole_short_html.text +2 -0
- data/unittest/expected_creole/test_creole_shy.creole +6 -0
- data/unittest/expected_creole/test_creole_shy.html +6 -0
- data/unittest/expected_creole/test_creole_shy.latex +8 -0
- data/unittest/expected_creole/test_creole_shy.text +4 -0
- data/unittest/expected_creole/test_creole_tabular.creole +22 -0
- data/unittest/expected_creole/test_creole_tabular.html +20 -0
- data/unittest/expected_creole/test_creole_tabular.latex +22 -0
- data/unittest/expected_creole/test_creole_tabular_creole.creole +21 -0
- data/unittest/expected_creole/test_creole_tabular_creole.html +20 -0
- data/unittest/expected_creole/test_creole_tabular_creole.latex +21 -0
- data/unittest/expected_creole/test_creole_tabular_css.creole +24 -0
- data/unittest/expected_creole/test_creole_tabular_css.html +20 -0
- data/unittest/expected_creole/test_creole_tabular_css.latex +22 -0
- data/unittest/expected_creole/test_creole_tabular_multicols.creole +16 -0
- data/unittest/expected_creole/test_creole_tabular_multicols.html +14 -0
- data/unittest/expected_creole/test_creole_tabular_multicols.latex +16 -0
- data/unittest/expected_creole/test_creole_tabular_row_parameters.latex +22 -0
- data/unittest/expected_creole/test_creole_tabular_with_cell_option.creole +21 -0
- data/unittest/expected_creole/test_creole_tabular_with_cell_option.html +20 -0
- data/unittest/expected_creole/test_creole_toc.html +13 -0
- data/unittest/expected_creole/test_creole_toc.latex +22 -0
- data/unittest/expected_creole/test_creole_toc.text +4 -0
- data/unittest/expected_creole/test_creole_toc_level.html +7 -0
- data/unittest/expected_creole/test_creole_toc_level.latex +10 -0
- data/unittest/expected_creole/test_creole_toc_level.text +3 -0
- data/unittest/expected_creole/test_creole_toc_level_text.html +8 -0
- data/unittest/expected_creole/test_creole_toc_level_text.latex +9 -0
- data/unittest/expected_creole/test_creole_toc_text.html +5 -0
- data/unittest/expected_creole/test_creole_toc_text.latex +5 -0
- data/unittest/expected_creole/test_creole_ul_multiple_line.html +7 -0
- data/unittest/expected_creole/test_creole_ul_multiple_line.latex +14 -0
- data/unittest/expected_creole/test_creole_ul_with_blank.html +11 -0
- data/unittest/expected_creole/test_creole_ul_with_blank.latex +20 -0
- data/unittest/expected_creole/test_creole_ul_with_bold.creole +0 -0
- data/unittest/expected_creole/test_creole_ul_with_bold.html +11 -0
- data/unittest/expected_creole/test_creole_ul_with_bold.latex +18 -0
- data/unittest/expected_creole/test_creole_ul_with_bold.text +7 -0
- data/unittest/expected_creole/test_creole_verbatim.html +25 -0
- data/unittest/expected_creole/test_creole_verbatim.latex +33 -0
- data/unittest/expected_creole/test_creole_verbatim.text +17 -0
- data/unittest/expected_creole/test_creole_verbatim_inline.html +6 -0
- data/unittest/expected_creole/test_creole_verbatim_inline.latex +8 -0
- data/unittest/expected_creole/test_creole_verbatim_inline_at_start.html +6 -0
- data/unittest/expected_creole/test_creole_verbatim_inline_at_start.latex +8 -0
- data/unittest/expected_creole_rail/test_rail_creole_object.tex +33 -0
- data/unittest/expected_creole_rail/test_rail_creole_placeholder.tex +40 -0
- data/unittest/expected_rubycode4doc/creole_complete.html +26 -0
- data/unittest/expected_rubycode4doc/creole_complete.tex +40 -0
- data/unittest/expected_rubycode4doc/creole_in_tab.html +4 -0
- data/unittest/expected_rubycode4doc/creole_in_tab.tex +6 -0
- data/unittest/expected_rubycode4doc/creole_inline_ruby.html +7 -0
- data/unittest/expected_rubycode4doc/creole_output.html +2 -0
- data/unittest/expected_rubycode4doc/creole_output.tex +4 -0
- data/unittest/expected_rubycode4doc/creole_rubycode.html +1 -0
- data/unittest/expected_rubycode4doc/creole_rubycode.tex +3 -0
- data/unittest/expected_rubycode4doc/creole_rubycode_evaluated.html +1 -0
- data/unittest/expected_rubycode4doc/creole_rubycode_evaluated.tex +3 -0
- data/unittest/expected_rubycode4doc/creole_rubycode_evaluated_listings.html +3 -0
- data/unittest/expected_rubycode4doc/creole_rubycode_evaluated_listings.tex +5 -0
- data/unittest/unittest_creole.rb +1379 -0
- data/unittest/unittest_creole_placeholders.rb +161 -0
- data/unittest/unittest_creole_plugin_rail.rb +148 -0
- data/unittest/unittest_creole_plugin_rubycode4doc.rb +123 -0
- data/unittest/unittest_creole_plugin_struktex.rb +26 -0
- data/unittest/unittest_creole_tabular.rb +212 -0
- metadata +529 -0
data/readme.rdoc
ADDED
@@ -0,0 +1,44 @@
|
|
1
|
+
=Docgenerator::Creole
|
2
|
+
|
3
|
+
==Docgenerator-gem
|
4
|
+
The docgenerator-gem allows the definition of documents and export to
|
5
|
+
* LaTeX
|
6
|
+
* HTML
|
7
|
+
* Creole (a common wiki markup, see http://www.wikicreole.org )
|
8
|
+
* plain text (not very good supported)
|
9
|
+
* context (only rudimentory tests)
|
10
|
+
|
11
|
+
==Docgenerator::Creole-gem
|
12
|
+
|
13
|
+
This gem is an extension with a Creole-Wiki to TeX/HTML-Translator
|
14
|
+
Before docgenerator 3.0 the creole parts are integrated to the main gem.
|
15
|
+
|
16
|
+
The creole markup is defined at http://www.wikicreole.org
|
17
|
+
|
18
|
+
|
19
|
+
==Examples
|
20
|
+
Please check the examples:
|
21
|
+
|
22
|
+
|
23
|
+
===Special LaTeX-Packages
|
24
|
+
|
25
|
+
There is also support of some special (LaTeX)-documents:
|
26
|
+
* lib/creole/plugins/rail.rb: build rail-diagramms (rail.sty)
|
27
|
+
See examples/creole_example_rail.rb
|
28
|
+
* lib/creole/plugins/struktex.rb: Build structogramms (struktex.sty)
|
29
|
+
See examples/creole_example_struktex.rb
|
30
|
+
* lib/creole/plugins/rubycode4creole.rb:
|
31
|
+
Use ruby-code as generator for wiki-content.
|
32
|
+
Can be used to build examples.
|
33
|
+
See examples/creole_example_rubycode.rb
|
34
|
+
|
35
|
+
|
36
|
+
==Version and History
|
37
|
+
For actual Version see Docgenerator::Creole::VERSION.
|
38
|
+
|
39
|
+
===Version 3.0.0. 2015-05-29
|
40
|
+
|
41
|
+
Initial version as own gem.
|
42
|
+
|
43
|
+
Changes to docgenerator 2.0:
|
44
|
+
* tabular cells are right justified if the content contains only numbers.
|
Binary file
|
@@ -0,0 +1,28 @@
|
|
1
|
+
|
2
|
+
* Docgenerator::Characters::Dollar: $
|
3
|
+
* Docgenerator::Characters::Percent:
|
4
|
+
|
5
|
+
* Docgenerator::Characters::Ampersand:
|
6
|
+
|
7
|
+
* Docgenerator::Characters::Rightarrow:
|
8
|
+
|
9
|
+
* Docgenerator::Characters::Leftarrow:
|
10
|
+
|
11
|
+
* Docgenerator::Characters::LLeftarrow:
|
12
|
+
|
13
|
+
* Docgenerator::Characters::RRightarrow:
|
14
|
+
|
15
|
+
* Docgenerator::Characters::Underscore: _
|
16
|
+
* Docgenerator::Characters::Sbquo:
|
17
|
+
|
18
|
+
* Docgenerator::Characters::Bdquo:
|
19
|
+
|
20
|
+
* Docgenerator::Characters::Ldots:
|
21
|
+
|
22
|
+
* Docgenerator::Characters::Rsquo:
|
23
|
+
|
24
|
+
* Docgenerator::Characters::Ldquo:
|
25
|
+
|
26
|
+
* Docgenerator::Characters::Ndash:
|
27
|
+
|
28
|
+
* Docgenerator::Characters::Mdash:
|
@@ -0,0 +1,18 @@
|
|
1
|
+
<ul >
|
2
|
+
<li > Docgenerator::Characters::Dollar: $ </li>
|
3
|
+
<li > Docgenerator::Characters::Percent: % </li>
|
4
|
+
<li > Docgenerator::Characters::Ampersand: & </li>
|
5
|
+
<li > Docgenerator::Characters::Rightarrow: → </li>
|
6
|
+
<li > Docgenerator::Characters::Leftarrow: ← </li>
|
7
|
+
<li > Docgenerator::Characters::LLeftarrow: ⇐ </li>
|
8
|
+
<li > Docgenerator::Characters::RRightarrow: ⇒ </li>
|
9
|
+
<li > Docgenerator::Characters::Underscore: _ </li>
|
10
|
+
<li > Docgenerator::Characters::Ndash: – </li>
|
11
|
+
<li > Docgenerator::Characters::Mdash: — </li>
|
12
|
+
<li > Docgenerator::Characters::Rightsinglequotemark: ’ </li>
|
13
|
+
<li > Docgenerator::Characters::Singlelowquotemark: ‚ </li>
|
14
|
+
<li > Docgenerator::Characters::Leftdoublequotemark: “ </li>
|
15
|
+
<li > Docgenerator::Characters::Rightdoublequotemark: ” </li>
|
16
|
+
<li > Docgenerator::Characters::Doublelowquotemark: „ </li>
|
17
|
+
<li > Docgenerator::Characters::Ldots: …</li>
|
18
|
+
</ul>
|
@@ -0,0 +1,36 @@
|
|
1
|
+
|
2
|
+
\begin{itemize}
|
3
|
+
|
4
|
+
\item Docgenerator::Characters::Dollar: \$
|
5
|
+
|
6
|
+
\item Docgenerator::Characters::Percent: \%
|
7
|
+
|
8
|
+
\item Docgenerator::Characters::Ampersand: \&
|
9
|
+
|
10
|
+
\item Docgenerator::Characters::Rightarrow: \ensuremath{\rightarrow}
|
11
|
+
|
12
|
+
\item Docgenerator::Characters::Leftarrow: \ensuremath{\leftarrow}
|
13
|
+
|
14
|
+
\item Docgenerator::Characters::LLeftarrow: \ensuremath{\Leftarrow}
|
15
|
+
|
16
|
+
\item Docgenerator::Characters::RRightarrow: \ensuremath{\Rightarrow}
|
17
|
+
|
18
|
+
\item Docgenerator::Characters::Underscore: \_
|
19
|
+
|
20
|
+
\item Docgenerator::Characters::Ndash: --
|
21
|
+
|
22
|
+
\item Docgenerator::Characters::Mdash: ---
|
23
|
+
|
24
|
+
\item Docgenerator::Characters::Rightsinglequotemark: \rq
|
25
|
+
|
26
|
+
\item Docgenerator::Characters::Singlelowquotemark: \glq
|
27
|
+
|
28
|
+
\item Docgenerator::Characters::Leftdoublequotemark: \lq\lq{}
|
29
|
+
|
30
|
+
\item Docgenerator::Characters::Rightdoublequotemark: \grqq
|
31
|
+
|
32
|
+
\item Docgenerator::Characters::Doublelowquotemark: \glqq
|
33
|
+
|
34
|
+
\item Docgenerator::Characters::Ldots: \ldots
|
35
|
+
\end{itemize}
|
36
|
+
|
@@ -0,0 +1,182 @@
|
|
1
|
+
<h1 > Top-level heading (1)</h1>
|
2
|
+
<h2 > This a test for creole 0.1 (2)</h2>
|
3
|
+
<h3 > This is a Subheading (3)</h3>
|
4
|
+
<h4 > Subsub (4)</h4>
|
5
|
+
<h5 > Subsubsub (5)</h5>
|
6
|
+
<p >
|
7
|
+
The ending equal signs should not be displayed:
|
8
|
+
</p>
|
9
|
+
<h1 > Top-level heading (1) </h1>
|
10
|
+
<h2 > This a test for creole 0.1 (2) </h2>
|
11
|
+
<h3 > This is a Subheading (3) </h3>
|
12
|
+
<h4 > Subsub (4) </h4>
|
13
|
+
<h5 > Subsubsub (5) </h5>
|
14
|
+
<p >
|
15
|
+
You can make things <strong >bold</strong> or <em >italic</em> or <strong ><em >both</em></strong> or <em ><strong >both</strong></em>.
|
16
|
+
</p>
|
17
|
+
<p >
|
18
|
+
Character formatting extends across line breaks: <strong >bold, this is still bold. This line deliberately does not end in star-star. </strong>
|
19
|
+
</p>
|
20
|
+
<p >
|
21
|
+
Not bold. Character formatting does not cross paragraph boundaries.
|
22
|
+
</p>
|
23
|
+
<p >
|
24
|
+
You can use <a href = "internal links" >internal links</a> or <a href = "http://www.wikicreole.org" >external links</a>, give the link a <a href = "internal links" >different</a> name.
|
25
|
+
</p>
|
26
|
+
<p >
|
27
|
+
Here's another sentence: This wisdom is taken from <a href = "Ward Cunningham's" >Ward Cunningham's</a> <a href = "http://www.c2.com/doc/wikisym/WikiSym2006.pdf" >Presentation at the Wikisym 06</a>.
|
28
|
+
</p>
|
29
|
+
<p >
|
30
|
+
Here's a external link without a description: <a href = "http://www.wikicreole.org" >http://www.wikicreole.org</a>
|
31
|
+
</p>
|
32
|
+
<p >
|
33
|
+
Be careful that italic links are rendered properly: <em ><a href = "http://my.book.example/" >My Book Title</a></em>
|
34
|
+
</p>
|
35
|
+
<p >
|
36
|
+
Free links without braces should be rendered as well, like <a href = "http://www.wikicreole.org/">http://www.wikicreole.org/</a> and <a href = "http://www.wikicreole.org/users/~example.">http://www.wikicreole.org/users/~example.</a>
|
37
|
+
</p>
|
38
|
+
<p >
|
39
|
+
Creole1.0 specifies that <a href = "http://bar">http://bar</a> and ftp:<em >bar should not render italic, something like foo:</em>bar should render as italic.
|
40
|
+
</p>
|
41
|
+
<p >
|
42
|
+
You can use this to draw a line to separate the page:
|
43
|
+
</p>
|
44
|
+
<hr />
|
45
|
+
<p >
|
46
|
+
You can use lists, start it at the first column for now, please...
|
47
|
+
</p>
|
48
|
+
<p >
|
49
|
+
unnumbered lists are like
|
50
|
+
</p>
|
51
|
+
<ul >
|
52
|
+
<li > item a </li>
|
53
|
+
<li > item b </li>
|
54
|
+
<li > <strong >bold item c</strong> </li>
|
55
|
+
</ul>
|
56
|
+
<p >
|
57
|
+
blank space is also permitted before lists like:
|
58
|
+
</p>
|
59
|
+
<ul >
|
60
|
+
<li > item a </li>
|
61
|
+
<li > item b </li>
|
62
|
+
<li > item c <ul >
|
63
|
+
<li > item c.a </li>
|
64
|
+
</ul>
|
65
|
+
</li>
|
66
|
+
</ul>
|
67
|
+
<p >
|
68
|
+
or you can number them
|
69
|
+
</p>
|
70
|
+
<ol >
|
71
|
+
<li > <a href = "item 1" >item 1</a> </li>
|
72
|
+
<li > item 2 </li>
|
73
|
+
<li > <em >italic item 3 </em> <ol >
|
74
|
+
<li > item 3.1 </li>
|
75
|
+
<li > item 3.2 </li>
|
76
|
+
</ol>
|
77
|
+
</li>
|
78
|
+
</ol>
|
79
|
+
<p >
|
80
|
+
up to five levels
|
81
|
+
</p>
|
82
|
+
<ul >
|
83
|
+
<li > 1 <ul >
|
84
|
+
<li > 2 <ul >
|
85
|
+
<li > 3 <ul >
|
86
|
+
<li > 4 <ul >
|
87
|
+
<li > 5 </li>
|
88
|
+
</ul>
|
89
|
+
</li>
|
90
|
+
</ul>
|
91
|
+
</li>
|
92
|
+
</ul>
|
93
|
+
</li>
|
94
|
+
</ul>
|
95
|
+
</li>
|
96
|
+
</ul>
|
97
|
+
<ul >
|
98
|
+
<li > You can have multiline list items </li>
|
99
|
+
<li > this is a second multiline list item </li>
|
100
|
+
</ul>
|
101
|
+
<p >
|
102
|
+
You can use nowiki syntax if you would like do stuff like this:
|
103
|
+
</p>
|
104
|
+
<pre>
|
105
|
+
Guitar Chord C:
|
106
|
+
|
107
|
+
||---|---|---|
|
108
|
+
||-0-|---|---|
|
109
|
+
||---|---|---|
|
110
|
+
||---|-0-|---|
|
111
|
+
||---|---|-0-|
|
112
|
+
||---|---|---|
|
113
|
+
</pre>
|
114
|
+
<p >
|
115
|
+
You can also use it inline nowiki <span style = "display: inline;white-space:pre;font-family:monospace"> in a sentence </span> like this.
|
116
|
+
</p>
|
117
|
+
<h1 > Escapes </h1>
|
118
|
+
<p >
|
119
|
+
Normal Link: <a href = "http://wikicreole.org/">http://wikicreole.org/</a> - now same link, but escaped: ~<a href = "http://wikicreole.org/">http://wikicreole.org/</a>
|
120
|
+
</p>
|
121
|
+
<p >
|
122
|
+
Normal asterisks: ~<strong >not bold~</strong>
|
123
|
+
</p>
|
124
|
+
<p >
|
125
|
+
a tilde alone: ~
|
126
|
+
</p>
|
127
|
+
<p >
|
128
|
+
a tilde escapes itself: ~~xxx
|
129
|
+
</p>
|
130
|
+
<h3 > Creole 0.2 </h3>
|
131
|
+
<p >
|
132
|
+
This should be a flower with the ALT text "this is a flower" if your wiki
|
133
|
+
supports ALT text on images:
|
134
|
+
</p>
|
135
|
+
<p >
|
136
|
+
<img src = "Red_Flower.jpg" alt = "here is a red flower" />
|
137
|
+
</p>
|
138
|
+
<h3 > Creole 0.4 </h3>
|
139
|
+
<p >
|
140
|
+
Tables are done like this:
|
141
|
+
</p>
|
142
|
+
<table >
|
143
|
+
<tr ><th >header col1</th>
|
144
|
+
<th >header col2</th>
|
145
|
+
</tr>
|
146
|
+
<tr ><td >col1</td>
|
147
|
+
<td >col2</td>
|
148
|
+
</tr>
|
149
|
+
<tr ><td >you</td>
|
150
|
+
<td >can</td>
|
151
|
+
</tr>
|
152
|
+
<tr ><td >also</td>
|
153
|
+
<td >align<br />
|
154
|
+
it.</td>
|
155
|
+
</tr>
|
156
|
+
</table>
|
157
|
+
<p >
|
158
|
+
You can format an address by simply forcing linebreaks:
|
159
|
+
</p>
|
160
|
+
<p >
|
161
|
+
My contact dates:<br />
|
162
|
+
Phone: xyz<br />
|
163
|
+
Fax: +45<br />
|
164
|
+
Mobile: abc
|
165
|
+
</p>
|
166
|
+
<h3 > Creole 0.5 </h3>
|
167
|
+
<table >
|
168
|
+
<tr ><th >Header title</th>
|
169
|
+
<th >Another header title</th>
|
170
|
+
</tr>
|
171
|
+
<tr ><td ><span style = "display: inline;white-space:pre;font-family:monospace"> //not italic text// </span></td>
|
172
|
+
<td ><span style = "display: inline;white-space:pre;font-family:monospace"> **not bold text** </span></td>
|
173
|
+
</tr>
|
174
|
+
<tr ><td ><em >italic text</em></td>
|
175
|
+
<td ><strong >bold text </strong></td>
|
176
|
+
</tr>
|
177
|
+
</table>
|
178
|
+
<h3 > Creole 1.0 </h3>
|
179
|
+
<p >
|
180
|
+
If interwiki links are setup in your wiki, this links to the WikiCreole
|
181
|
+
page about Creole 1.0 test cases: <a href = "WikiCreole:Creole1.0TestCases" >WikiCreole:Creole1.0TestCases</a>.
|
182
|
+
</p>
|
@@ -0,0 +1,253 @@
|
|
1
|
+
\section{ Top-level heading (1)}
|
2
|
+
\subsection{ This a test for creole 0.1 (2)}
|
3
|
+
\subsubsection{ This is a Subheading (3)}
|
4
|
+
\paragraph{ Subsub (4)}
|
5
|
+
\subparagraph{ Subsubsub (5)}
|
6
|
+
|
7
|
+
|
8
|
+
The ending equal signs should not be displayed:
|
9
|
+
|
10
|
+
\section{ Top-level heading (1) }
|
11
|
+
\subsection{ This a test for creole 0.1 (2) }
|
12
|
+
\subsubsection{ This is a Subheading (3) }
|
13
|
+
\paragraph{ Subsub (4) }
|
14
|
+
\subparagraph{ Subsubsub (5) }
|
15
|
+
|
16
|
+
|
17
|
+
You can make things \textbf{bold} or \emph{italic} or \textbf{\emph{both}} or \emph{\textbf{both}}.
|
18
|
+
|
19
|
+
|
20
|
+
|
21
|
+
Character formatting extends across line breaks: \textbf{bold, this is still bold. This line deliberately does not end in star-star. }
|
22
|
+
|
23
|
+
|
24
|
+
|
25
|
+
Not bold. Character formatting does not cross paragraph boundaries.
|
26
|
+
|
27
|
+
|
28
|
+
|
29
|
+
You can use \href{internal links}{internal links} or \href{http://www.wikicreole.org}{external links}, give the link a \href{internal links}{different} name.
|
30
|
+
|
31
|
+
|
32
|
+
|
33
|
+
Here's another sentence: This wisdom is taken from \href{Ward Cunningham's}{Ward Cunningham's} \href{http://www.c2.com/doc/wikisym/WikiSym2006.pdf}{Presentation at the Wikisym 06}.
|
34
|
+
|
35
|
+
|
36
|
+
|
37
|
+
Here's a external link without a description: \href{http://www.wikicreole.org}{http://www.wikicreole.org}
|
38
|
+
|
39
|
+
|
40
|
+
|
41
|
+
Be careful that italic links are rendered properly: \emph{\href{http://my.book.example/}{My Book Title}}
|
42
|
+
|
43
|
+
|
44
|
+
|
45
|
+
Free links without braces should be rendered as well, like \url{http://www.wikicreole.org/} and \url{http://www.wikicreole.org/users/~example.}
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
Creole1.0 specifies that \url{http://bar} and ftp:\emph{bar should not render italic, something like foo:}bar should render as italic.
|
50
|
+
|
51
|
+
|
52
|
+
|
53
|
+
You can use this to draw a line to separate the page:
|
54
|
+
|
55
|
+
\hrulefill
|
56
|
+
|
57
|
+
|
58
|
+
You can use lists, start it at the first column for now, please...
|
59
|
+
|
60
|
+
|
61
|
+
|
62
|
+
unnumbered lists are like
|
63
|
+
|
64
|
+
|
65
|
+
\begin{itemize}
|
66
|
+
|
67
|
+
\item item a
|
68
|
+
|
69
|
+
\item item b
|
70
|
+
|
71
|
+
\item \textbf{bold item c}
|
72
|
+
\end{itemize}
|
73
|
+
|
74
|
+
|
75
|
+
|
76
|
+
blank space is also permitted before lists like:
|
77
|
+
|
78
|
+
|
79
|
+
\begin{itemize}
|
80
|
+
|
81
|
+
\item item a
|
82
|
+
|
83
|
+
\item item b
|
84
|
+
|
85
|
+
\item item c
|
86
|
+
\begin{itemize}
|
87
|
+
|
88
|
+
\item item c.a
|
89
|
+
\end{itemize}
|
90
|
+
|
91
|
+
|
92
|
+
\end{itemize}
|
93
|
+
|
94
|
+
|
95
|
+
|
96
|
+
or you can number them
|
97
|
+
|
98
|
+
|
99
|
+
\begin{enumerate}
|
100
|
+
|
101
|
+
\item \href{item 1}{item 1}
|
102
|
+
|
103
|
+
\item item 2
|
104
|
+
|
105
|
+
\item \emph{italic item 3 }
|
106
|
+
\begin{enumerate}
|
107
|
+
|
108
|
+
\item item 3.1
|
109
|
+
|
110
|
+
\item item 3.2
|
111
|
+
\end{enumerate}
|
112
|
+
|
113
|
+
|
114
|
+
\end{enumerate}
|
115
|
+
|
116
|
+
|
117
|
+
|
118
|
+
up to five levels
|
119
|
+
|
120
|
+
|
121
|
+
\begin{itemize}
|
122
|
+
|
123
|
+
\item 1
|
124
|
+
\begin{itemize}
|
125
|
+
|
126
|
+
\item 2
|
127
|
+
\begin{itemize}
|
128
|
+
|
129
|
+
\item 3
|
130
|
+
\begin{itemize}
|
131
|
+
|
132
|
+
\item 4
|
133
|
+
\begin{itemize}
|
134
|
+
|
135
|
+
\item 5
|
136
|
+
\end{itemize}
|
137
|
+
|
138
|
+
|
139
|
+
\end{itemize}
|
140
|
+
|
141
|
+
|
142
|
+
\end{itemize}
|
143
|
+
|
144
|
+
|
145
|
+
\end{itemize}
|
146
|
+
|
147
|
+
|
148
|
+
\end{itemize}
|
149
|
+
|
150
|
+
|
151
|
+
\begin{itemize}
|
152
|
+
|
153
|
+
\item You can have multiline list items
|
154
|
+
|
155
|
+
\item this is a second multiline list item
|
156
|
+
\end{itemize}
|
157
|
+
|
158
|
+
|
159
|
+
|
160
|
+
You can use nowiki syntax if you would like do stuff like this:
|
161
|
+
|
162
|
+
|
163
|
+
\begin{verbatim}
|
164
|
+
Guitar Chord C:
|
165
|
+
|
166
|
+
||---|---|---|
|
167
|
+
||-0-|---|---|
|
168
|
+
||---|---|---|
|
169
|
+
||---|-0-|---|
|
170
|
+
||---|---|-0-|
|
171
|
+
||---|---|---|
|
172
|
+
\end{verbatim}
|
173
|
+
|
174
|
+
|
175
|
+
|
176
|
+
You can also use it inline nowiki \verb| in a sentence | like this.
|
177
|
+
|
178
|
+
\section{ Escapes }
|
179
|
+
|
180
|
+
|
181
|
+
Normal Link: \url{http://wikicreole.org/} - now same link, but escaped: ~\url{http://wikicreole.org/}
|
182
|
+
|
183
|
+
|
184
|
+
|
185
|
+
Normal asterisks: ~\textbf{not bold~}
|
186
|
+
|
187
|
+
|
188
|
+
|
189
|
+
a tilde alone: ~
|
190
|
+
|
191
|
+
|
192
|
+
|
193
|
+
a tilde escapes itself: ~~xxx
|
194
|
+
|
195
|
+
\subsubsection{ Creole 0.2 }
|
196
|
+
|
197
|
+
|
198
|
+
This should be a flower with the ALT text "this is a flower" if your wiki
|
199
|
+
supports ALT text on images:
|
200
|
+
|
201
|
+
|
202
|
+
|
203
|
+
\includegraphics[,]{Red_Flower.jpg}
|
204
|
+
|
205
|
+
\subsubsection{ Creole 0.4 }
|
206
|
+
|
207
|
+
|
208
|
+
Tables are done like this:
|
209
|
+
|
210
|
+
\begin{tabular}{ll}
|
211
|
+
\textbf{header col1}
|
212
|
+
& \textbf{header col2}
|
213
|
+
\\
|
214
|
+
col1
|
215
|
+
& col2
|
216
|
+
\\
|
217
|
+
you
|
218
|
+
& can
|
219
|
+
\\
|
220
|
+
also
|
221
|
+
& align\newline
|
222
|
+
it.
|
223
|
+
\\
|
224
|
+
\end{tabular}
|
225
|
+
|
226
|
+
|
227
|
+
You can format an address by simply forcing linebreaks:
|
228
|
+
|
229
|
+
|
230
|
+
|
231
|
+
My contact dates:\newline
|
232
|
+
Phone: xyz\newline
|
233
|
+
Fax: +45\newline
|
234
|
+
Mobile: abc
|
235
|
+
|
236
|
+
\subsubsection{ Creole 0.5 }
|
237
|
+
\begin{tabular}{ll}
|
238
|
+
\textbf{Header title}
|
239
|
+
& \textbf{Another header title}
|
240
|
+
\\
|
241
|
+
\verb| //not italic text// |
|
242
|
+
& \verb| **not bold text** |
|
243
|
+
\\
|
244
|
+
\emph{italic text}
|
245
|
+
& \textbf{bold text }
|
246
|
+
\\
|
247
|
+
\end{tabular}
|
248
|
+
\subsubsection{ Creole 1.0 }
|
249
|
+
|
250
|
+
|
251
|
+
If interwiki links are setup in your wiki, this links to the WikiCreole
|
252
|
+
page about Creole 1.0 test cases: \href{WikiCreole:Creole1.0TestCases}{WikiCreole:Creole1.0TestCases}.
|
253
|
+
|