X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;f=sample.md;h=8cea5d6b3ae5a25c2daf2a19806f1b4215cef893;hb=6edf0543111ac7f119c0255ae254159d9508f770;hp=afb8066750d183c296f81fab139267efaa0cda1b;hpb=31eb213da6e050f77ccaf59626484a03f1b95af6;p=smdp.git diff --git a/sample.md b/sample.md index afb8066..8cea5d6 100644 --- a/sample.md +++ b/sample.md @@ -1,42 +1,176 @@ -%title: Sample Presentation +%title: mdp - Sample Presentation %author: Michael Göhler -%date: 2014-08-07 +%date: 2014-09-18 -Title -===== +mdp +=== -This is the first page. +A command-line based markdown presentation tool. ------------------------------------- +------------------------------------------------- -These are 3 stars: \*\*\* -And two backslashes: \\\\ +# Supported markdown formatting's ---- +The input file is split into multiple slides by +horizontal rules (hr). A hr consisting of at +least 3 *\** or *-*. It can also contain spaces but +no other characters. -# Page 2 +Each of these represents the start of a new slide -This is _another_ test page. +\* \* \* +\--- +\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* +\- - - -* * * +------------------------------------------------- -## Code example +# Supported markdown formatting's - public static void main() { - - printf("%s\n", "hello"); - } +First-level headers can be prefixed by single *#* +or underlined by *===*. + +\# first-level + +becomes + +# first-level + +------------------------------------------------- + +# Supported markdown formatting's + +Second-level headers can be prefixed by *##* or +underlined by *---*. + +second-level +\------------ + +becomes + +second-level +------------ + + +------------------------------------------------- + +# Supported markdown formatting's + +Inline codes are surrounded with backticks. + +C program starts with \`main()\`. -Now with *different* indentation. +becomes - function expand_tab { - printf("%s\n", "hello"); +C program starts with `main()`. + +------------------------------------------------- + +# Supported markdown formatting's + +Code blocks are automatically detected by 4 +spaces at the beginning of a line. + +Tabs are automatically expanded to 4 spaces +while parsing the input. + +\ int main(int argc, char \*argv[]) { +\ printf("%s\\n", "Hello world!"); +\ } + +becomes + + int main(int argc, char *argv[]) { + printf("%s\n", "Hello world!"); } -*** +------------------------------------------------- + +# Supported markdown formatting's + +Quotes are auto-detected by preceding *>*. + +Multiple *>* are interpreted as nested quotes. + +\> quote +\>> nested quote 1 +\> > nested quote 2 + +becomes + +> quote +>> nested quote 1 +> > nested quote 2 + +------------------------------------------------- + +# Supported markdown formatting's + +Inline highlighting is supported as followed: + +- *\** colors text as red +- *\_* underlines text + +\_some\_ \*highlighted\* \_\*text\*\_ + +becomes + +_some_ *highlighted* _*text*_ + +------------------------------------------------- + +# Supported markdown formatting's + +Backslashes force special markdown characters +like *\**, *\_*, *#* and *>* to be printed as normal +characters. + +\\\*special\\\* + +becomes + +\*special\* + +------------------------------------------------- + +## More information about markdown + +can be found on + +_http://daringfireball.net/projects/markdown/_ + +------------------------------------------------- + +# Support for UTF-8 special characters + +Here are some examples. + +ae = ä, oe = ö, ue = ü, ss = ß +upsilon = Ʊ, phi = ɸ + +▛▀▀▀▀▀▀▀▀▀▜ +▌rectangle▐ +▙▄▄▄▄▄▄▄▄▄▟ + + +------------------------------------------------- + +# Suspend your presentation for hands-on examples + +Use *Ctrl + z* to suspend the presentation. + +Use *fg* to resume it. + +------------------------------------------------- + +## Last words + +I hope you like *mdp*. But be aware, that it is +still in alpha status. + +If you observe strange behavior, feel free to +open an issue on GitHub: -Another Title -------------- +_https://github.com/visit1985/mdp_ -And some Text.