Import upstream version 1.0.15+git20210521.1.b95b17e
Debian Janitor
1 year, 6 months ago
|
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
|
64 | 64 |
install -m 644 mdp.1 $(DESTDIR)$(PREFIX)/share/man/man1/$(TARGET).1
|
65 | 65 |
|
66 | 66 |
uninstall:
|
67 | |
$(RM) $(DESTDIR)$(PREFIX)/$(TARGET)
|
|
67 |
$(RM) $(DESTDIR)$(PREFIX)/bin/$(TARGET)
|
|
68 |
$(RM) $(DESTDIR)$(PREFIX)/share/man/man1/$(TARGET).1
|
68 | 69 |
|
69 | 70 |
.PHONY: all clean install src uninstall
|
19 | 19 |
$ make install
|
20 | 20 |
$ mdp sample.md
|
21 | 21 |
|
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/).
|
23 | 23 |
- on Cygwin you can use the existing [package](https://cygwin.com/cgi-bin2/package-grep.cgi?grep=mdp.exe) from the setup program.
|
24 | 24 |
- On Debian, you can use the existing [DEB package](https://tracker.debian.org/pkg/mdp-src), or run `apt-get install mdp`.
|
25 | 25 |
- On FreeBSD, you can use the port [misc/mdp](http://www.freshports.org/misc/mdp).
|
22 | 22 |
*
|
23 | 23 |
* struct: cstack_t which defines char stack type in heap memory
|
24 | 24 |
*
|
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
|
27 | 27 |
* function: cstack_t->pop to remove the top char from the stack
|
28 | 28 |
* function: cstack_t->top to test if the top char is a given char
|
29 | 29 |
* function: cstack_t->empty to test if the stack is empty
|
22 | 22 |
*
|
23 | 23 |
* struct: cstring_t which defines a expandable c string type in heap memory
|
24 | 24 |
*
|
25 | |
* function: cstring_init to intialize struct of type cstring_t
|
|
25 |
* function: cstring_init to initialize struct of type cstring_t
|
26 | 26 |
* function: cstring_t->expand to add one character to the struct
|
27 | 27 |
* function: cstring_t->expand_arr to add a string to the struct
|
28 | 28 |
* function: cstring_t->strip to remove a substring
|
20 | 20 |
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
21 | 21 |
*
|
22 | 22 |
*
|
23 | |
* enum: line_bitmask which enumerates markdown formating bits
|
|
23 |
* enum: line_bitmask which enumerates markdown formatting bits
|
24 | 24 |
*
|
25 | 25 |
* struct: deck_t the root object representing a deck of slides
|
26 | 26 |
* struct: slide_t a linked list element of type slide contained in a deck
|
24 | 24 |
*
|
25 | 25 |
* function: markdown_load is the main function which reads a file handle,
|
26 | 26 |
* 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
|
28 | 28 |
* rules in given line
|
29 | 29 |
* function: markdown_debug to print a report of the generated data structure
|
30 | 30 |
* function: adjust_line_length to calculate line length excluding markup
|
19 | 19 |
* You should have received a copy of the GNU General Public License
|
20 | 20 |
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
21 | 21 |
*
|
22 | |
* function: url_init to intialize a new url object
|
|
22 |
* function: url_init to initialize a new url object
|
23 | 23 |
*/
|
24 | 24 |
|
25 | 25 |
typedef struct _url_t {
|
24 | 24 |
*
|
25 | 25 |
* function: ncurses_display initializes ncurses, defines colors, calculates
|
26 | 26 |
* 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
|
28 | 28 |
* by char
|
29 | 29 |
* function: fade_in, fade_out implementing color fading in 256 color mode
|
30 | 30 |
* function: int_length to calculate decimal length of slide count
|
32 | 32 |
the presentation is read from standard input.
|
33 | 33 |
.SS "Output Control"
|
34 | 34 |
.TP
|
|
35 |
.BR \-c ", " \-\^\-nocodebg
|
|
36 |
Don't change the background color of code blocks.
|
|
37 |
.TP
|
35 | 38 |
.BR \-e ", " \-\^\-expand
|
36 | 39 |
Enable character entity expansion (e.g. '>' becomes '>').
|
37 | 40 |
.TP
|
|
41 | 44 |
.BR \-i ", " \-\^\-invert
|
42 | 45 |
Swap black and white color.
|
43 | 46 |
.TP
|
|
47 |
.BR \-s ", " \-\^\-noslidenum
|
|
48 |
Do not show slide number at the bottom.
|
|
49 |
.TP
|
44 | 50 |
.BR \-t ", " \-\^\-notrans
|
45 | 51 |
Disable transparency in transparent terminal.
|
|
52 |
.TP
|
|
53 |
.BR \-x ", " \-\^\-noslidemax
|
|
54 |
Show slide number, but not total number of slides.
|
46 | 55 |
.
|
47 | 56 |
.SS "Miscellaneous Options"
|
48 | 57 |
.TP
|
101 | 101 |
|
102 | 102 |
-> # Supported markdown formatting <-
|
103 | 103 |
|
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
|
105 | 105 |
extension. Use at least three ~ chars to open and
|
106 | 106 |
at least as many or more ~ for closing.
|
107 | 107 |
|