%title: Sample Presentation made with mdp (Xmodulo.com) %author: Dan Nanni %date: 2015-01-28 -> This is a slide title <- ========= -> mdp is a command-line based presentation tool with markdown support. <- *_Features_* * Multi-level headers * Code block formatting * Nested quotes * Nested list * Text highlight and underline * Citation * UTF-8 special characters ————————————————- -> # Example of nested list <- This is an example of multi-level headers and a nested list. # first-level title second-level ———— – *item 1* – sub-item 1 – sub-sub-item 1 – sub-sub-item 2 – sub-sub-item 3 – sub-item 2 ————————————————- -> # Example of code block formatting <- This example shows how to format a code snippet. 1 /* Hello World program */ 2 3 #include <stdio.h> 4 5 int main() 6 { 7 printf(\”Hello World\”); 8 return 0; 9 } This example shows inline code: `sudo reboot` ————————————————- -> # Example of nested quotes <- This is an example of nested quotes. # three-level nested quotes > This is the first-level quote. >> This is the second-level quote >> and continues. >>> *This is the third-level quote, and so on.* ————————————————- -> # Example of citations <- This example shows how to place a citation inside a presentation. This tutorial is published at [Xmodulo](http://xmodulo.com) You are welcome to connect with me at [LinkedIn](http://www.linkedin.com/in/xmodulo) Pretty cool, huh? ————————————————- -> # Example of UTF-8 special characters <- This example shows UTF-8 special characters. ae = ?, oe = ?, ue = ü, ss = ? alpha = ?, beta = ?, upsilon = ?, phi = ? Omega = ?, Delta = ?, Sigma = ? ??????????? ?rectangle? ???????????
在命令行中展示演示稿
当你把以上代码保存为slide.md的文本文件后,你可以运行以下命令来展示演示稿:
复制代码
代码如下:
$ mdp slide.md
你可以通过按键 回车/空格/下翻页/向下光标键 (下一张幻灯)、回退/上翻页/向上光标键 (上一张幻灯)、Home (幻灯首页)、 End (幻灯末页)或者 数字N (第N页幻灯)来操作你的演示稿。