Codebase list mdp-src / 564d43d
Import upstream version 1.0.15+git20210521.1.b95b17e Debian Janitor 2 years ago
11 changed file(s) with 35 addition(s) and 10 deletion(s). Raw diff Collapse all Expand all
0 # temporary compile results
1 *.o
2
3 # Binary excutions
4 mdp
5 mdp.exe
6
7 # Other temporary files
8 .DS_Store
9 .idea
10 *~
11 *.swp
12 *.sublime-workspace
13 *.out
14 tags
6464 install -m 644 mdp.1 $(DESTDIR)$(PREFIX)/share/man/man1/$(TARGET).1
6565
6666 uninstall:
67 $(RM) $(DESTDIR)$(PREFIX)/$(TARGET)
67 $(RM) $(DESTDIR)$(PREFIX)/bin/$(TARGET)
68 $(RM) $(DESTDIR)$(PREFIX)/share/man/man1/$(TARGET).1
6869
6970 .PHONY: all clean install src uninstall
1919 $ make install
2020 $ mdp sample.md
2121
22 - On Arch, you can use the existing [AUR package](https://aur.archlinux.org/packages/mdp-git/).
22 - On Arch Linux, you can use the existing [package](https://www.archlinux.org/packages/community/x86_64/mdp/).
2323 - on Cygwin you can use the existing [package](https://cygwin.com/cgi-bin2/package-grep.cgi?grep=mdp.exe) from the setup program.
2424 - On Debian, you can use the existing [DEB package](https://tracker.debian.org/pkg/mdp-src), or run `apt-get install mdp`.
2525 - On FreeBSD, you can use the port [misc/mdp](http://www.freshports.org/misc/mdp).
2222 *
2323 * struct: cstack_t which defines char stack type in heap memory
2424 *
25 * function: cstack_init to intialize struct of type cstack_t
26 * function: cstack_t->push to add one char on top if the stack
25 * function: cstack_init to initialize struct of type cstack_t
26 * function: cstack_t->push to add one char on top of the stack
2727 * function: cstack_t->pop to remove the top char from the stack
2828 * function: cstack_t->top to test if the top char is a given char
2929 * function: cstack_t->empty to test if the stack is empty
2222 *
2323 * struct: cstring_t which defines a expandable c string type in heap memory
2424 *
25 * function: cstring_init to intialize struct of type cstring_t
25 * function: cstring_init to initialize struct of type cstring_t
2626 * function: cstring_t->expand to add one character to the struct
2727 * function: cstring_t->expand_arr to add a string to the struct
2828 * function: cstring_t->strip to remove a substring
2020 * along with this program. If not, see <http://www.gnu.org/licenses/>.
2121 *
2222 *
23 * enum: line_bitmask which enumerates markdown formating bits
23 * enum: line_bitmask which enumerates markdown formatting bits
2424 *
2525 * struct: deck_t the root object representing a deck of slides
2626 * struct: slide_t a linked list element of type slide contained in a deck
2424 *
2525 * function: markdown_load is the main function which reads a file handle,
2626 * and initializes deck, slides and lines
27 * function: markdown_analyse which is used to identify line wide formating
27 * function: markdown_analyse which is used to identify line wide formatting
2828 * rules in given line
2929 * function: markdown_debug to print a report of the generated data structure
3030 * function: adjust_line_length to calculate line length excluding markup
1919 * You should have received a copy of the GNU General Public License
2020 * along with this program. If not, see <http://www.gnu.org/licenses/>.
2121 *
22 * function: url_init to intialize a new url object
22 * function: url_init to initialize a new url object
2323 */
2424
2525 typedef struct _url_t {
2424 *
2525 * function: ncurses_display initializes ncurses, defines colors, calculates
2626 * window geometry and handles key strokes
27 * function: add_line detects inline markdown formating and prints line char
27 * function: add_line detects inline markdown formatting and prints line char
2828 * by char
2929 * function: fade_in, fade_out implementing color fading in 256 color mode
3030 * function: int_length to calculate decimal length of slide count
3232 the presentation is read from standard input.
3333 .SS "Output Control"
3434 .TP
35 .BR \-c ", " \-\^\-nocodebg
36 Don't change the background color of code blocks.
37 .TP
3538 .BR \-e ", " \-\^\-expand
3639 Enable character entity expansion (e.g. '&gt;' becomes '>').
3740 .TP
4144 .BR \-i ", " \-\^\-invert
4245 Swap black and white color.
4346 .TP
47 .BR \-s ", " \-\^\-noslidenum
48 Do not show slide number at the bottom.
49 .TP
4450 .BR \-t ", " \-\^\-notrans
4551 Disable transparency in transparent terminal.
52 .TP
53 .BR \-x ", " \-\^\-noslidemax
54 Show slide number, but not total number of slides.
4655 .
4756 .SS "Miscellaneous Options"
4857 .TP
101101
102102 -> # Supported markdown formatting <-
103103
104 You can also use [pandoc](http://pandoc.org/demo/example9/pandocs-markdown.html)'s fenced code block
104 You can also use [pandoc](https://pandoc.org/MANUAL.html#fenced-code-blocks)'s fenced code block
105105 extension. Use at least three ~ chars to open and
106106 at least as many or more ~ for closing.
107107