Commit Graph
9 Commits
Author SHA1 Message Date
david parsons e8d67af6c7 More work on making mkd_css() and mkd_toc() resemble each other. 2011-01-04 21:27:52 -08:00
david parsons 7fb50d3563 Tweak the way I null-pad and return values from mkd_css() and mkd_toc() 2011-01-04 11:59:54 -08:00
david parsons 249d38fca5 Null-terminate the strings generated by mkd_css() and mkd_toc().
This reduces any surprises that happen when someone uses these functions
but doesn't check the return value.
2011-01-01 21:38:32 -08:00
david parsons 12bb2b959b Convert all the internal flag bit names so they are the
same as the public flag bit names.
2010-10-22 12:59:06 -07:00
David Parsons 0b39f0c30a First pass at discount version 2: convert flags into a 32 bit quantity,
make superscript and relaxed emphasis into flag bits instead of compile
switches.
2010-10-21 21:03:17 -07:00
David Parsons 800e7f22a7 When I restructured the source tree after changing the footnote
code handler, I forgot to revisit the table of contents code, and
this made it break.  I also added a test case to check that the
table of contents is actually being generated.
2009-09-11 09:17:04 -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
David Parsons efcda8faf3 Forgot to check in toc.c 2008-09-26 22:08:30 -07:00