Linux command
mdp 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Present a markdown file as slides
mdp [presentation.md]
Read presentation from stdin
cat [presentation.md] | mdp
Present with color fading disabled
mdp -f [presentation.md]
Present with inverted colors
mdp -i [presentation.md]
Present with character entity expansion enabled
mdp -e [presentation.md]
Present with transparency disabled
mdp -t [presentation.md]
说明
mdp is a command-line based markdown presentation tool. It renders presentations in the terminal using standard markdown syntax. Horizontal rules are used as slide separators. Headers prefixed with @ are displayed as title and author in the top and bottom bars. Supported formatting includes headlines, code blocks, block quotes, unordered lists, bold text, underlined text, and inline code. Navigation uses arrow keys, h/j/k/l, Space, Enter, Page Up/Down. Press g or Home to go to the first slide, G or End for the last. Number keys 1-9 jump to a specific slide. Press r to reload and q to quit.
参数
- -e, --expand
- Enable character entity expansion (e.g. '>' becomes '>').
- -f, --nofade
- Disable color fading in 256 color mode.
- -i, --invert
- Swap black and white colors.
- -t, --notrans
- Disable transparency in transparent terminal.
- -d, --debug
- Enable debug messages on stderr. Add multiple times to increase debug level.
- -h, --help
- Display usage message and exit.
- -v, --version
- Display version and license information.
FAQ
What is the mdp command used for?
mdp is a command-line based markdown presentation tool. It renders presentations in the terminal using standard markdown syntax. Horizontal rules are used as slide separators. Headers prefixed with @ are displayed as title and author in the top and bottom bars. Supported formatting includes headlines, code blocks, block quotes, unordered lists, bold text, underlined text, and inline code. Navigation uses arrow keys, h/j/k/l, Space, Enter, Page Up/Down. Press g or Home to go to the first slide, G or End for the last. Number keys 1-9 jump to a specific slide. Press r to reload and q to quit.
How do I run a basic mdp example?
Run `mdp [presentation.md]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -e, --expand do in mdp?
Enable character entity expansion (e.g. '>' becomes '>').