Commit Graph
15 Commits
Author SHA1 Message Date
david parsons 262c7c7dba fix code indentation in a test program in configure; tweak title
generation in xmlpage to stop gcc & clang from complaining about
dangling elses
2022-10-27 11:19:39 -07:00
david parsons 4fecf0bd46 xmlpage had a variable declaration in the middle of a block 2022-06-18 02:11:23 -07:00
Nguyễn Gia Phong d0f81ec9be Add H1 title support for makepage 2022-06-10 18:02:33 +09:00
david parsons b9e867b574 redo the whole flags dealie as an opaque blob 2019-12-07 22:49:52 -08:00
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