10 Commits
Author SHA1 Message Date
jessica parsons 8ddfb981ef redo the html5 flag option to make it a per-MMIOT thing, instead of being a global block that we have to deallocate when we're done; also take the opportunity to clean up mkd_initmmiot to have it set fags & html5 extraflags instead of duplicating that code in three places 2025-09-03 17:26:21 -07: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 f555d4c1c4 fix all places where I pass flags to be DWORDs 2018-09-14 20:18:17 -07:00
david parsons 641c6917a2 In Csreparse, pass our flags down to ___mkd_reparse 2016-12-31 18:36:50 -08:00
david parsons 57ea29d87f Add $LFLAGS to the build line for theme 2012-01-19 08:15:28 -08:00
David Parsons c99e478aad Rework all of linkylinky() to make it a little bit less of a huge
monster bodge.   It's no shorter, but it's a little bit clearer, I
hope, and now I can revisit it and rework the whole link name gathering
scheme if need be.
2009-06-08 10:39:57 -07:00
David Parsons 7ba17fc9c0 Use Csio functions to generate the stylesheet sections,
and move the css output functions off into their own file.
2009-05-12 01:55:10 -07:00
david parsons 142e1155bd Tweak function names (__mkd_reparse -> ___mkd_reparse and
`__mkd_emblock` -> `___mkd_emblock`), add prototypes in `markdown.h`,
change `Csputc()` from an int to a void function, make `Csreparse()`
a void function.
2009-02-28 09:54:42 -08:00
David Parsons 9397c0a5c7 Redo toc.c to add the new function mkd_toc(), which writes the
generate toc to a string.   Documented in `markdown.3`
and `mkd-functions.3`, requires a new file (`Csio.c`) that has
functions for writing to a Cstring, requires that some of the
internal functions in `generate.c` be exposed (and renaed to
`__mkd_`*function* to reduce namespace collisions.

The new functions in Csio (particularly `Csprintf()` should make
it easier to convert many of the other "we print to a `FILE*` and
you need to lump it" functions into a pair of "print to a string"
and "print to a file" functions.
2009-02-27 16:47:02 -08:00