docgenerator 1.0.4 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/creole/creole2doc.rb +777 -0
- data/lib/creole/creole_inclusion_and_plugins.rb +236 -0
- data/lib/creole/creole_placeholder.rb +74 -0
- data/lib/creole/creole_tabular.rb +170 -0
- data/lib/docgenerator.rb +15 -6
- data/lib/docgenerator_attribute.rb +2 -2
- data/lib/docgenerator_characters.rb +20 -4
- data/lib/docgenerator_document.rb +132 -42
- data/lib/docgenerator_element.rb +531 -524
- data/lib/docgenerator_elements.rb +408 -399
- data/lib/docgenerator_environments.rb +28 -2
- data/lib/docgenerator_footnote.rb +72 -79
- data/lib/docgenerator_sections.rb +1 -1
- data/lib/docgenerator_tabular.rb +8 -3
- data/lib/packages/docgenerator_beamer.rb +253 -0
- data/lib/packages/docgenerator_scrlettr2.rb +53 -9
- data/lib/templates/docgenerator_template_css.rb +4 -0
- data/lib/wiki2doc/wiki2docgenerator.rb +1087 -970
- data/lib/yaml2presentation/yaml2presentation.rb +1091 -0
- data/self_docgenerator.rb +8 -6
- data/unittest/Red_Flower.jpg +0 -0
- data/unittest/creole1.0test.txt +128 -0
- data/unittest/expected/beamer_01_doc.html +1 -1
- data/unittest/expected/beamer_02_doc.html +1 -1
- data/unittest/expected/beamer_doc_html_overview_with_detailpic_and_text_doc.html +34 -0
- data/unittest/expected/beamer_doc_html_overview_with_detailpic_doc.html +34 -0
- data/unittest/expected/beamer_doc_key_doc.html +1 -1
- data/unittest/expected/beamer_doc_note_doc.html +1 -1
- data/unittest/expected/beamer_doc_pic_bottom_doc.html +1 -1
- data/unittest/expected/beamer_doc_pic_doc.html +1 -1
- data/unittest/expected/beamer_doc_pic_left_doc.html +1 -1
- data/unittest/expected/beamer_doc_pic_right_doc.html +1 -1
- data/unittest/expected/beamer_doc_pic_top_doc.html +1 -1
- data/unittest/expected/test_footnote.html +2 -2
- data/unittest/expected/test_footnote.latex +1 -1
- data/unittest/expected/test_footnote_group.html +3 -3
- data/unittest/expected/test_footnote_group.latex +2 -2
- data/unittest/expected_creole/test_creole.html +3 -0
- data/unittest/expected_creole/test_creole_characters_all.html +10 -0
- data/unittest/expected_creole/test_creole_characters_all.latex +20 -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_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_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_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_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 +23 -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_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 +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_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 +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_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 +3 -0
- data/unittest/expected_creole/test_creole_pictures_css.latex +4 -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_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_tabular.html +20 -0
- data/unittest/expected_creole/test_creole_tabular.latex +22 -0
- data/unittest/expected_creole/test_creole_tabular_creole.html +18 -0
- data/unittest/expected_creole/test_creole_tabular_creole.latex +19 -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_toc.html +11 -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_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_privat/test_creole_test_document.html +6 -0
- data/unittest/{expected → expected_wiki}/test_wiki.html +0 -0
- data/unittest/{expected → expected_wiki}/test_wiki.latex +0 -0
- data/unittest/{expected → expected_wiki}/test_wiki.text +0 -0
- data/unittest/{expected → expected_wiki}/test_wiki.wiki +0 -0
- data/unittest/{expected → expected_wiki}/test_wiki_amazon.html +0 -0
- data/unittest/{expected → expected_wiki}/test_wiki_description.html +0 -0
- data/unittest/{expected → expected_wiki}/test_wiki_description.latex +0 -0
- data/unittest/{expected → expected_wiki}/test_wiki_description.text +0 -0
- data/unittest/{expected → expected_wiki}/test_wiki_description.wiki +0 -0
- data/unittest/expected_wiki/test_wiki_footnote.html +8 -0
- data/unittest/expected_wiki/test_wiki_footnote.latex +17 -0
- data/unittest/{expected → expected_wiki}/test_wiki_footnote.text +2 -4
- data/unittest/expected_wiki/test_wiki_footnote.wiki +10 -0
- data/unittest/expected_wiki/test_wiki_footnote_2.html +8 -0
- data/unittest/expected_wiki/test_wiki_footnote_groupid.html +21 -0
- data/unittest/{expected → expected_wiki}/test_wiki_html_code.html +0 -0
- data/unittest/{expected → expected_wiki}/test_wiki_html_code.latex +0 -0
- data/unittest/{expected → expected_wiki}/test_wiki_html_code.text +0 -0
- data/unittest/{expected → expected_wiki}/test_wiki_html_code.wiki +0 -0
- data/unittest/{expected → expected_wiki}/test_wiki_inline.html +0 -0
- data/unittest/{expected → expected_wiki}/test_wiki_inline.latex +0 -0
- data/unittest/{expected → expected_wiki}/test_wiki_inline.text +0 -0
- data/unittest/{expected → expected_wiki}/test_wiki_inline.wiki +0 -0
- data/unittest/{expected → expected_wiki}/test_wiki_label.html +0 -0
- data/unittest/{expected → expected_wiki}/test_wiki_link.html +0 -0
- data/unittest/{expected → expected_wiki}/test_wiki_link.latex +0 -0
- data/unittest/{expected → expected_wiki}/test_wiki_link.log +0 -0
- data/unittest/{expected → expected_wiki}/test_wiki_link.wiki +0 -0
- data/unittest/{expected → expected_wiki}/test_wiki_list_ol.html +0 -0
- data/unittest/{expected → expected_wiki}/test_wiki_list_ol.latex +0 -0
- data/unittest/{expected → expected_wiki}/test_wiki_list_ol.text +0 -0
- data/unittest/{expected → expected_wiki}/test_wiki_list_ol.wiki +0 -0
- data/unittest/{expected → expected_wiki}/test_wiki_list_ol_after_ul.html +0 -0
- data/unittest/{expected → expected_wiki}/test_wiki_list_ol_after_ul.latex +0 -0
- data/unittest/{expected → expected_wiki}/test_wiki_list_ol_after_ul.text +0 -0
- data/unittest/{expected → expected_wiki}/test_wiki_list_ol_after_ul.wiki +0 -0
- data/unittest/{expected → expected_wiki}/test_wiki_list_ol_ul.html +0 -0
- data/unittest/{expected → expected_wiki}/test_wiki_list_ol_ul.latex +0 -0
- data/unittest/{expected → expected_wiki}/test_wiki_list_ol_ul.text +0 -0
- data/unittest/{expected → expected_wiki}/test_wiki_list_ol_ul.wiki +0 -0
- data/unittest/{expected → expected_wiki}/test_wiki_list_ul.html +0 -0
- data/unittest/{expected → expected_wiki}/test_wiki_list_ul.latex +0 -0
- data/unittest/{expected → expected_wiki}/test_wiki_list_ul.text +0 -0
- data/unittest/{expected → expected_wiki}/test_wiki_list_ul.wiki +0 -0
- data/unittest/{expected → expected_wiki}/test_wiki_list_ul_too_much.html +0 -0
- data/unittest/{expected → expected_wiki}/test_wiki_list_ul_too_much.latex +0 -0
- data/unittest/{expected → expected_wiki}/test_wiki_list_ul_too_much.text +0 -0
- data/unittest/{expected → expected_wiki}/test_wiki_list_ul_too_much.wiki +0 -0
- data/unittest/{expected → expected_wiki}/test_wiki_picture.html +0 -0
- data/unittest/{expected → expected_wiki}/test_wiki_picture.latex +0 -0
- data/unittest/{expected → expected_wiki}/test_wiki_picture_thumb.html +0 -0
- data/unittest/{expected → expected_wiki}/test_wiki_tab1.html +0 -0
- data/unittest/{expected → expected_wiki}/test_wiki_tab1.latex +0 -0
- data/unittest/{expected → expected_wiki}/test_wiki_tab1.wiki +0 -0
- data/unittest/{expected → expected_wiki}/test_wiki_textformatting.html +0 -0
- data/unittest/{expected → expected_wiki}/test_wiki_textformatting.latex +0 -0
- data/unittest/{expected → expected_wiki}/test_wiki_textformatting.text +0 -0
- data/unittest/{expected → expected_wiki}/test_wiki_textformatting.wiki +0 -0
- data/unittest/{expected → expected_wiki}/test_wiki_toc.html +0 -0
- data/unittest/{expected → expected_wiki}/test_wiki_toc.latex +0 -0
- data/unittest/{expected → expected_wiki}/test_wiki_toc.text +0 -0
- data/unittest/{expected → expected_wiki}/test_wiki_toc.wiki +0 -0
- data/unittest/{expected → expected_wiki}/test_wiki_ul_multiple_line.html +0 -0
- data/unittest/{expected → expected_wiki}/test_wiki_ul_multiple_line.latex +0 -0
- data/unittest/{expected → expected_wiki}/test_wiki_ul_multiple_line.text +0 -0
- data/unittest/{expected → expected_wiki}/test_wiki_ul_multiple_line.wiki +0 -0
- data/unittest/test_docgenerator.rb +1 -2
- data/unittest/unittest_creole2doc.rb +1024 -0
- data/unittest/unittest_docgenerator.rb +17 -8
- data/unittest/unittest_wiki2doc.rb +92 -88
- data/unittest/unittest_yaml2pres.rb +336 -0
- metadata +202 -70
- data/unittest/expected/test_wiki_footnote.html +0 -8
- data/unittest/expected/test_wiki_footnote.latex +0 -15
- data/unittest/expected/test_wiki_footnote.wiki +0 -12
- data/unittest/expected/test_wiki_footnote_groupid.html +0 -21
@@ -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 \href{http://www.wikicreole.org/}{http://www.wikicreole.org/} and \href{http://www.wikicreole.org/users/~example.}{http://www.wikicreole.org/users/~example.}
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
Creole1.0 specifies that \href{http://bar}{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: \href{http://wikicreole.org/}{http://wikicreole.org/} - now same link, but escaped: ~\href{http://wikicreole.org/}{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
|
+
header col1
|
212
|
+
& 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
|
+
Header title
|
239
|
+
& 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
|
+
|
@@ -0,0 +1,160 @@
|
|
1
|
+
|
2
|
+
Top-level heading (1)
|
3
|
+
------------------------------
|
4
|
+
|
5
|
+
|
6
|
+
This a test for creole 0.1 (2)
|
7
|
+
------------------------------
|
8
|
+
|
9
|
+
|
10
|
+
This is a Subheading (3)
|
11
|
+
------------------------------
|
12
|
+
|
13
|
+
|
14
|
+
Subsub (4)
|
15
|
+
------------------------------
|
16
|
+
|
17
|
+
|
18
|
+
Subsubsub (5)
|
19
|
+
------------------------------
|
20
|
+
|
21
|
+
|
22
|
+
The ending equal signs should not be displayed:
|
23
|
+
|
24
|
+
Top-level heading (1)
|
25
|
+
------------------------------
|
26
|
+
|
27
|
+
|
28
|
+
This a test for creole 0.1 (2)
|
29
|
+
------------------------------
|
30
|
+
|
31
|
+
|
32
|
+
This is a Subheading (3)
|
33
|
+
------------------------------
|
34
|
+
|
35
|
+
|
36
|
+
Subsub (4)
|
37
|
+
------------------------------
|
38
|
+
|
39
|
+
|
40
|
+
Subsubsub (5)
|
41
|
+
------------------------------
|
42
|
+
|
43
|
+
|
44
|
+
You can make things bold or italic or both or both.
|
45
|
+
|
46
|
+
Character formatting extends across line breaks: bold,this is still bold. This line deliberately does not end in star-star.
|
47
|
+
|
48
|
+
Not bold. Character formatting does not cross paragraph boundaries.
|
49
|
+
|
50
|
+
You can use internal links (internal links) or external links (http://www.wikicreole.org), give the link a different (internal links) name.
|
51
|
+
|
52
|
+
Here's another sentence: This wisdom is taken from Ward Cunningham's (Ward Cunningham's) Presentation at the Wikisym 06 (http://www.c2.com/doc/wikisym/WikiSym2006.pdf).
|
53
|
+
|
54
|
+
Here's a external link without a description: http://www.wikicreole.org (http://www.wikicreole.org)
|
55
|
+
|
56
|
+
Be careful that italic links are rendered properly: My Book Title (http://my.book.example/)
|
57
|
+
|
58
|
+
Free links without braces should be rendered as well, like http://www.wikicreole.org/ (http://www.wikicreole.org/) and http://www.wikicreole.org/users/~example. (http://www.wikicreole.org/users/~example.)
|
59
|
+
|
60
|
+
Creole1.0 specifies that http://bar (http://bar) and ftp:bar should not render italic,something like foo:bar should render as italic.
|
61
|
+
|
62
|
+
You can use this to draw a line to separate the page:
|
63
|
+
-------------------------
|
64
|
+
You can use lists, start it at the first column for now, please...
|
65
|
+
|
66
|
+
unnumbered lists are like
|
67
|
+
- item a
|
68
|
+
- item b
|
69
|
+
- bold item c
|
70
|
+
|
71
|
+
blank space is also permitted before lists like:
|
72
|
+
- item a
|
73
|
+
- item b
|
74
|
+
- item c - item c.a
|
75
|
+
|
76
|
+
|
77
|
+
or you can number them
|
78
|
+
- item 1 (item 1)
|
79
|
+
- item 2
|
80
|
+
- italic item 3 - item 3.1
|
81
|
+
- item 3.2
|
82
|
+
|
83
|
+
|
84
|
+
up to five levels
|
85
|
+
- 1 - 2 - 3 - 4 - 5
|
86
|
+
|
87
|
+
- You can have multiline list items
|
88
|
+
- this is a second multiline list item
|
89
|
+
|
90
|
+
You can use nowiki syntax if you would like do stuff like this:
|
91
|
+
Guitar Chord C:
|
92
|
+
|
93
|
+
||---|---|---|
|
94
|
+
||-0-|---|---|
|
95
|
+
||---|---|---|
|
96
|
+
||---|-0-|---|
|
97
|
+
||---|---|-0-|
|
98
|
+
||---|---|---|
|
99
|
+
|
100
|
+
You can also use it inline nowiki in a sentence like this.
|
101
|
+
|
102
|
+
Escapes
|
103
|
+
------------------------------
|
104
|
+
|
105
|
+
|
106
|
+
Normal Link: http://wikicreole.org/ (http://wikicreole.org/) - now same link, but escaped: ~http://wikicreole.org/ (http://wikicreole.org/)
|
107
|
+
|
108
|
+
Normal asterisks: ~not bold~
|
109
|
+
|
110
|
+
a tilde alone: ~
|
111
|
+
|
112
|
+
a tilde escapes itself: ~~xxx
|
113
|
+
|
114
|
+
Creole 0.2
|
115
|
+
------------------------------
|
116
|
+
|
117
|
+
|
118
|
+
This should be a flower with the ALT text "this is a flower" if your wiki
|
119
|
+
supports ALT text on images:
|
120
|
+
|
121
|
+
|
122
|
+
|
123
|
+
Creole 0.4
|
124
|
+
------------------------------
|
125
|
+
|
126
|
+
|
127
|
+
Tables are done like this:
|
128
|
+
header col1
|
129
|
+
header col2
|
130
|
+
col1
|
131
|
+
col2
|
132
|
+
you
|
133
|
+
can
|
134
|
+
also
|
135
|
+
align
|
136
|
+
it.
|
137
|
+
|
138
|
+
You can format an address by simply forcing linebreaks:
|
139
|
+
|
140
|
+
My contact dates:
|
141
|
+
Phone: xyz
|
142
|
+
Fax: +45
|
143
|
+
Mobile: abc
|
144
|
+
|
145
|
+
Creole 0.5
|
146
|
+
------------------------------
|
147
|
+
|
148
|
+
Header title
|
149
|
+
Another header title
|
150
|
+
//not italic text//
|
151
|
+
**not bold text**
|
152
|
+
italic text
|
153
|
+
bold text
|
154
|
+
|
155
|
+
Creole 1.0
|
156
|
+
------------------------------
|
157
|
+
|
158
|
+
|
159
|
+
If interwiki links are setup in your wiki, this links to the WikiCreole
|
160
|
+
page about Creole 1.0 test cases: WikiCreole:Creole1.0TestCases (WikiCreole:Creole1.0TestCases).
|
@@ -0,0 +1,17 @@
|
|
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
|
+
<h1 > **not** //parsed// </h1>
|
15
|
+
<p >
|
16
|
+
The content is not parsed.
|
17
|
+
</p>
|
@@ -0,0 +1,19 @@
|
|
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
|
+
\section{ **not** //parsed// }
|
16
|
+
|
17
|
+
|
18
|
+
The content is not parsed.
|
19
|
+
|
@@ -0,0 +1,48 @@
|
|
1
|
+
|
2
|
+
Top-level heading (1)
|
3
|
+
------------------------------
|
4
|
+
|
5
|
+
|
6
|
+
This a test for creole 0.1 (2)
|
7
|
+
------------------------------
|
8
|
+
|
9
|
+
|
10
|
+
This is a Subheading (3)
|
11
|
+
------------------------------
|
12
|
+
|
13
|
+
|
14
|
+
Subsub (4)
|
15
|
+
------------------------------
|
16
|
+
|
17
|
+
|
18
|
+
Subsubsub (5)
|
19
|
+
------------------------------
|
20
|
+
|
21
|
+
|
22
|
+
The ending equal signs should not be displayed:
|
23
|
+
|
24
|
+
Top-level heading (1)
|
25
|
+
------------------------------
|
26
|
+
|
27
|
+
|
28
|
+
This a test for creole 0.1 (2)
|
29
|
+
------------------------------
|
30
|
+
|
31
|
+
|
32
|
+
This is a Subheading (3)
|
33
|
+
------------------------------
|
34
|
+
|
35
|
+
|
36
|
+
Subsub (4)
|
37
|
+
------------------------------
|
38
|
+
|
39
|
+
|
40
|
+
Subsubsub (5)
|
41
|
+
------------------------------
|
42
|
+
|
43
|
+
|
44
|
+
**not** //parsed//
|
45
|
+
------------------------------
|
46
|
+
|
47
|
+
|
48
|
+
The content is not parsed.
|
@@ -0,0 +1,37 @@
|
|
1
|
+
|
2
|
+
== Top-level heading (1)==
|
3
|
+
|
4
|
+
|
5
|
+
=== This a test for creole 0.1 (2)===
|
6
|
+
|
7
|
+
|
8
|
+
==== This is a Subheading (3)====
|
9
|
+
|
10
|
+
|
11
|
+
===== Subsub (4)=====
|
12
|
+
|
13
|
+
|
14
|
+
====== Subsubsub (5)======
|
15
|
+
|
16
|
+
|
17
|
+
The ending equal signs should not be displayed:
|
18
|
+
|
19
|
+
== Top-level heading (1) ==
|
20
|
+
|
21
|
+
|
22
|
+
=== This a test for creole 0.1 (2) ===
|
23
|
+
|
24
|
+
|
25
|
+
==== This is a Subheading (3) ====
|
26
|
+
|
27
|
+
|
28
|
+
===== Subsub (4) =====
|
29
|
+
|
30
|
+
|
31
|
+
====== Subsubsub (5) ======
|
32
|
+
|
33
|
+
|
34
|
+
== **not** //parsed// ==
|
35
|
+
|
36
|
+
|
37
|
+
The content is not parsed.
|
@@ -0,0 +1,23 @@
|
|
1
|
+
---
|
2
|
+
- !ruby/struct:Creole_line
|
3
|
+
type: :dummy
|
4
|
+
content:
|
5
|
+
add_info:
|
6
|
+
- !ruby/struct:Creole_line
|
7
|
+
type: :par
|
8
|
+
content: |
|
9
|
+
Text,
|
10
|
+
more Text.
|
11
|
+
And some more text.
|
12
|
+
|
13
|
+
add_info:
|
14
|
+
- !ruby/struct:Creole_line
|
15
|
+
type: :dummy
|
16
|
+
content:
|
17
|
+
add_info:
|
18
|
+
- !ruby/struct:Creole_line
|
19
|
+
type: :par
|
20
|
+
content: |
|
21
|
+
A new paragraph.
|
22
|
+
|
23
|
+
add_info:
|