1 %title: mdp - Sample Presentation
8 -> A command-line based markdown presentation tool. <-
12 next slide *Enter*, *Space*, *Page Down*, *j*, *l*,
13 *Down Arrow*, *Right Arrow*
15 previous slide *Backspace*, *Page Up*, *h*, *k*,
16 *Up Arrow*, *Left Arrow*
21 first slide *Home*, *g*
24 -------------------------------------------------
26 -> # Supported markdown formatting <-
28 The input file is split into multiple slides by
29 horizontal rules (hr). A hr consisting of at
30 least 3 *\** or *-*. It can also contain spaces but
33 Each of these represents the start of a new slide.
37 \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*
40 -------------------------------------------------
42 -> # Supported markdown formatting <-
44 First-level headers can be prefixed by single *#*
45 or underlined by *===*.
53 -------------------------------------------------
55 -> # Supported markdown formatting <-
57 Second-level headers can be prefixed by *##* or
69 -------------------------------------------------
71 -> # Supported markdown formatting's <-
73 Inline codes are surrounded with backticks.
75 C program starts with \`main()\`.
79 C program starts with `main()`.
81 -------------------------------------------------
83 -> # Supported markdown formatting <-
85 Code blocks are automatically detected by 4 spaces
86 at the beginning of a line.
88 Tabs are automatically expanded to 4 spaces while
91 \ int main(int argc, char \*argv[]) {
92 \ printf("%s\\n", "Hello world!");
97 int main(int argc, char *argv[]) {
98 printf("%s\n", "Hello world!");
101 -------------------------------------------------
103 -> # Supported markdown formatting <-
105 You can also use [pandoc](http://pandoc.org/demo/example9/pandocs-markdown.html)'s fenced code block
106 extension. Use at least three ~ chars to open and
107 at least as many or more ~ for closing.
110 \int main(int argc, char \*argv[]) {
111 \ printf("%s\\n", "Hello world!");
118 int main(int argc, char *argv[]) {
119 printf("%s\n", "Hello world!");
123 Pandoc attributes (like ".numberlines" etc.)
126 -------------------------------------------------
128 -> # Supported markdown formatting <-
130 You can also use [github](https://guides.github.com/features/mastering-markdown/#GitHub-flavored-markdown) flavored markdown's
131 code block. Use at least three backticks to open
132 and at least as many or more backticks for closing.
135 \int main(int argc, char \*argv[]) {
136 \ printf("%s\\n", "Hello world!");
143 int main(int argc, char *argv[]) {
144 printf("%s\n", "Hello world!");
148 Language hint will be ignored
150 -------------------------------------------------
152 -> # Supported markdown formatting <-
154 Quotes are auto-detected by preceding *>*.
156 Multiple *>* are interpreted as nested quotes.
168 -------------------------------------------------
170 -> # Supported markdown formatting <-
172 Inline highlighting is supported as followed:
174 \- *\** colors text as red
175 \- *\_* underlines text
177 \_some\_ \*highlighted\* \_\*text\*\_
181 _some_ *highlighted* _*text*_
183 -------------------------------------------------
185 -> # Supported markdown formatting <-
187 Backslashes force special markdown characters
188 like *\**, *\_*, *#* and *>* to be printed as
197 -------------------------------------------------
199 -> # Supported markdown formatting <-
201 Leading *\** or *-* indicate lists.
219 -------------------------------------------------
221 -> # Supported markdown formatting <-
223 A single *\<br\>* or *^* in a line indicates mdp
224 to stop the output on that position.
226 This can be used to show bullet points
229 *\<br\>* is also not displayed in HTML converted
244 -------------------------------------------------
246 -> # Supported markdown formatting <-
248 Leading *->* indicates centering.
262 -------------------------------------------------
264 -> # Supported markdown formatting <-
266 URL in pandoc style are supported:
268 \[Google](http://www.google.com/)
272 [Google](http://www.google.com/)
274 -------------------------------------------------
276 -> ## More information about markdown <-
278 can be found in the [markdown documentation](http://daringfireball.net/projects/markdown/).
280 -------------------------------------------------
282 -> # Support for UTF-8 special characters <-
284 Here are some examples.
286 ae = ä, oe = ö, ue = ü, ss = ß
294 -------------------------------------------------
296 -> # Suspend your presentation for hands-on examples <-
298 Use *Ctrl + z* to suspend the presentation.
300 Use *fg* to resume it.
302 -------------------------------------------------
304 -> # Convert your presentation to PDF <-
306 To publish your presentation later on, you may
307 want to convert it to PDF.
309 This can be achieved by two additional tools:
311 \- *markdown* to convert to HTML
312 \- *wkhtmltopdf* to convert from HTML to PDF
314 After installing them, you can simply type:
316 $ markdown sample.md | wkhtmltopdf - sample.pdf
318 -------------------------------------------------
322 I hope you like *mdp*.
324 If you observe strange behavior, feel free to
325 open an issue on [GitHub](https://github.com/visit1985/mdp).