david parsons
7fdc188f07
clean up all references to flags; define them EVERYWHERE as mkd_flag_t
2018-09-18 08:25:27 -07:00
david parsons
d9c4985a9d
put spurious braces around the DO_OR_DIE that puts out the contents of the title just to make clang 3.5 stfu
2016-12-26 20:58:50 -08:00
david parsons
2985a3e508
Always generate a title element, even if it's empty
2016-12-26 20:56:14 -08:00
david parsons
39063bdff1
Tweak mkd_xmlpage() so that it only uses the published interface.
2016-05-22 15:08:31 -07:00
david parsons
e02a34b8ef
1) messed up the fwrite() error check in mkd_generatehtml,
...
2) return EOF instead of -1 on error in mkd_xhtmlpage,
3) if the mkd output fails, exit with nonzero status
2015-10-26 15:18:16 -07:00
david parsons
6e4190fa65
Handle error conditions and pass errorcodes out of various mkd_xxx output function
...
(inspired by a patch written by Koen Punt <koen@koenpunt.nl >)
2015-10-26 14:43:54 -07:00
Koen Punt
37659eb654
handle cleanup from the caller
...
instead of freeing the resource in mkd_xhtmlpage and mkd_dumptree, the mkd_cleanup now has to be explicitly called.
2015-10-25 15:46:53 +01:00
David Parsons
93560cbefb
In theme.c and xmlpage.c, use mkd_generatecss() instead
...
of the unfortunately named `mkd_style()` to print out the
stylesheets.
2009-05-12 07:00:23 -07:00
david parsons
8ec8cb67e6
1. Add -L. and -I. to the definition for CC, so that
...
headers and libraries will be picked up from the
current directory first.
2. Add prototypes for mkd_xhtmlpage() and mkd_style()
to mkdio.h/markdown.h (as needed)
2008-10-04 18:13:33 -07:00
David Parsons
dfca6408a2
Tweak mkd_xhtmlpage() to clean up some spurious <style> output,
...
fix the xhtml version#.
2008-10-04 13:34:09 -07:00
David Parsons
a59e83ec29
Add support for table-of-contents generation (code supplied by Jjgod Jiang)
...
and a function that generates a rudimentary xhmtl page from a markdown
document (idea from Tim Channon)
2008-09-26 11:39:32 -07:00