MDP(1)
π NAME π
Hey bestie, welcome to the mdp(1) manual β yes, that's the General Commands Manual section, and we're keeping it cute. mdp is a command-line based markdown presentation tool. No cap, it's literally that. β¨
β¨ SYNOPSIS β¨
The whole summoning ritual is:
mdp [OPTION]... [FILE]
π DESCRIPTION π
mdp is a command-line program that allows you to make elegant presentations from markdown formatted FILEs.
It is as easy as write your presentation content in the text editor of your preference and launch the presentation from the command-line. Periodt. π«Ά
π OPTIONS π
π§ Input Control
FILEβ the input file from which the presentation is read. If no file is specified, or if the file name is-, the presentation is read from standard input.
π Output Control
-c,--nocodebgβ don't change the background color of code blocks.-e,--expandβ enable character entity expansion (e.g.'>'becomes'>').-f,--nofadeβ disable color fading in 256 color mode.-i,--invertβ swap black and white color.-j N,--jump Nβ jump to slide number N.-L N,--left-indent Nβ shift slide content by N columns to the right.-s,--noslidenumβ do not show slide number at the bottom.-T N,--top-indent Nβ shift slide content by N rows down.-t,--notransβ disable transparency in transparent terminal.-x,--noslidemaxβ show slide number, but not total number of slides.
β Miscellaneous Options
-d,--debugβ enable debug messages onSTDERR. Add multiple times to increases debug level.-h,--helpβ display usage message and exit.-v,--versionβ display version and license information.
π¦ ENVIRONMENT VARIABLES π¦
π Output Control
MDP_LIST_HEAD[1-3],MDP_LIST_OPEN[1-3]β controls the list characters of unordered lists.
The default is equivalent to:
MDP_LIST_OPEN1=' | '
MDP_LIST_OPEN2=' | '
MDP_LIST_OPEN3=' | '
MDP_LIST_HEAD1=' +- '
MDP_LIST_HEAD2=' +- '
MDP_LIST_HEAD3=' +- '
π MARKDOWN FORMATTING π
For a complete list of supported markups, refer the sample presentation (sample.md) provided alongside mdp, or online available at https://github.com/visit1985/mdp.
π§ Slides
The input FILE is split into multiple slides by horizontal rules. Each consisting of at least 3 --- or *** characters on a single line. This line must be prefixed by an completely empty line. It can also contain spaces but no other characters.
If any slide is too large to fit into your current screen, an error message will be displayed at the moment the presentation is launched.
πΈ Line-by-Line Mode
Same stop-point trigger as block-by-block below β one line at a time is the vibe π
πΈ Block-by-Block Mode
A single <br>, <BR> or ^ on an otherwise empty line signals mdp to stop output of the current slide (stop point) and wait for a key-press by the user.
This enables the user to display bullet points or list items one by one (line by line) or block by block.
π Headers
mdp supports metadata lines at the top of the input file in the form [KEY]:[VALUE]. The first metadata entry is used as the title, and repeated footer: entries are used for the lower bar. If only one footer value is given, it is centered when slide numbers are hidden. For example:
<!--
title: Example Presentation
footer: Someone
footer: 2026-01-01
-->
Legacy metadata is also accepted as %title:, %author:, %date: lines at the top of the input file. The old %author: and %date: labels are treated as the first and second footer values respectively. HTML comments may be used to hide those metadata lines from the slide deck, and the comment metadata does not require % prefixes.
Headers are only recognized at the top of the input FILE.
β Line spanning markup
Supported are headlines, code blocks, quotes and unordered lists.
π In-line markup
As well as bold text, underlined text and in-line code.
π₯ COLOR SUPPORT π₯
Most terminals are able to display 256 colors these days. But some of them enable only 16 colors by default. To enjoy mdp's full capabilities, these terminals need to be signaled to enable 256 color mode. This is usually done by setting the TERM environment variable.
export TERM=xterm-256color
π KEYBOARD CONTROLS π
h,j,k,l, Arrow keys,Space,Enter,Backspace,Page Up,Page Downβ display next/previous slide or continue after a stop point.g,Homeβ jump to first slide.G,Endβ jump to last slide.1..Nβ jump to Nth slide.rβ reload the inputFILE. This key is disabled if input was read from standard input.qβ exitmdp.
β¨ CUSTOMIZATION β¨
mdp can be configured by modifying config.h and recompiling.
π AUTHOR π
Written by Michael Goehler and others, see https://github.com/visit1985/mdp/blob/master/AUTHORS.
π COPYRIGHT π
Copyright (C) 2026 Michael Goehler
This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
And that's the tea β β this page is from User Commands, dated 2016-04-02, and it's the MDP(1) manual. Bye bestie, go make a slay presentation π β¨
π¦ where this page comes from
- arch rolling: mdp 1.0.19-1 Β· GPL-3.0-only
- nixpkgs unstable: mdp 1.0.19
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms