X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;f=sample.md;h=47926de203187af9caa71955ccae8510464287aa;hb=e93d05ee25a937dc10d4958eedf09ed7856f6afe;hp=2a7b9347f0536b4338a9fe2b8eb49b2768b97a1e;hpb=2c77b5e6e665dcce85cc22d7673573c46137593d;p=smdp.git diff --git a/sample.md b/sample.md index 2a7b934..47926de 100644 --- a/sample.md +++ b/sample.md @@ -1,6 +1,6 @@ %title: mdp - Sample Presentation -%author: Michael Göhler -%date: 2014-09-18 +%author: visit1985 +%date: 2014-09-22 mdp === @@ -11,6 +11,22 @@ A command-line based markdown presentation tool. # 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. + +Each of these represents the start of a new slide + +\* \* \* +\--- +\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* +\- - - + +------------------------------------------------- + +# Supported markdown formatting's + First-level headers can be prefixed by single *#* or underlined by *===*. @@ -36,6 +52,18 @@ second-level ------------ +------------------------------------------------- + +# Supported markdown formatting's + +Inline codes are surrounded with backticks. + +C program starts with \`main()\`. + +becomes + +C program starts with `main()`. + ------------------------------------------------- # Supported markdown formatting's @@ -80,8 +108,8 @@ becomes Inline highlighting is supported as followed: -- *\** colors text as red -- *\_* underlines text +\- *\** colors text as red +\- *\_* underlines text \_some\_ \*highlighted\* \_\*text\*\_ @@ -105,6 +133,46 @@ becomes ------------------------------------------------- +# Supported markdown formatting's + +Leading *\** or *-* indicate lists. + +TODO list +\* major 1 +\ \- minor 1.1 +\ \- detail 1.1.1 \*IMPORTANT\* +\ \- detail 1.1.2 +\ \- minor 1.2 + +becomes + +TODO list +* major 1 + - minor 1.1 + - detail 1.1.1 *IMPORTANT* + - detail 1.1.2 + - minor 1.2 + +------------------------------------------------- + +# Supported markdown formatting's + +Leading *->* indicates centering. + +\-> # test <- +\-> ## test <- +\-> test +\-> \_\*test\*\_ <- + +becomes + +-> # test <- +-> ## test <- +-> test +-> _*test*_ <- + +------------------------------------------------- + ## More information about markdown can be found on @@ -135,6 +203,22 @@ Use *fg* to resume it. ------------------------------------------------- +# Convert your presentation to PDF + +To publish your presentation later on, you may +want to convert it to PDF. + +This can be achieved by two additional tools: + +\- *markdown* to convert to HTML +\- *wkhtmltopdf* to convert from HTML to PDF + +After installing them, you can simply type: + + $ markdown sample.md | wkhtmltopdf - sample.pdf + +------------------------------------------------- + ## Last words I hope you like *mdp*. But be aware, that it is @@ -145,3 +229,4 @@ open an issue on GitHub: _https://github.com/visit1985/mdp_ +