X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;f=sample.md;h=2a7b9347f0536b4338a9fe2b8eb49b2768b97a1e;hb=785ae9e96355a7d14e9ab37e4ef9662e5f19d8e0;hp=afb8066750d183c296f81fab139267efaa0cda1b;hpb=31eb213da6e050f77ccaf59626484a03f1b95af6;p=smdp.git diff --git a/sample.md b/sample.md index afb8066..2a7b934 100644 --- a/sample.md +++ b/sample.md @@ -1,42 +1,147 @@ -%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 ---- +First-level headers can be prefixed by single *#* +or underlined by *===*. -# Page 2 +\# first-level -This is _another_ test page. +becomes -* * * +# first-level -## Code example +------------------------------------------------- + +# Supported markdown formatting's + +Second-level headers can be prefixed by *##* or +underlined by *---*. + +second-level +\------------ + +becomes + +second-level +------------ - public static void main() { - - printf("%s\n", "hello"); - } -Now with *different* indentation. +------------------------------------------------- - function expand_tab { - printf("%s\n", "hello"); +# 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. -Another Title -------------- +If you observe strange behavior, feel free to +open an issue on GitHub: -And some Text. +_https://github.com/visit1985/mdp_