34 Commits
Author SHA1 Message Date
jessica parsons f61b163f36 FINALLY start updating the documentation to the v3 published interface 2025-09-02 22:47:41 -07:00
david parsons d1e5461237 Update the description of the MKD_TAGTEXT flag 2017-01-26 18:02:31 -08:00
david parsons 58ae3a35db Change the explaination for URLENCODEDANCHOR to reflect it now being
perverted into HTML5 encoding.
2017-01-18 18:35:56 -08:00
Nathan Phillip Brink 5da3388382 Convert urlencodedanchor to a runtime flag for issue #124.
Instead of `./configure.sh --with-urlencoded-anchor`, now use
`-furlencodedanchor` or `MKD_URLENCODEDANCHOR`.
2015-07-13 03:24:31 +00:00
Nathan Phillip Brink 5790b66a4a Make githubtags configurable at runtime for issue #124.
Instead of `./configure.sh --with-github-tags`, specify `-fgithubtags`
or `MKD_GITHUBTAGS`. Shows up in `markdown -VV` as `GITHUBTAGS`
instead of `GITHUB-TAGS` now.
2015-07-13 03:24:31 +00:00
Nathan Phillip Brink 2ff7c1f41b Convert compiletime ID Anchor setting to runtime flag for issue #124.
Now specify flag `-fidanchor` or `MKD_IDANCHOR` instead of
`./configure.sh --with-id-anchor`. In `markdown -VV` displays as
`IDANCHOR` or `!IDANCHOR` rather than `ID-ANCHOR`.
2015-07-13 03:24:31 +00:00
Nathan Phillip Brink 088b5ab628 Convert --with-fenced-code to runtime flag for issue #124.
This change is more invasive and difficult for me as not all existing
preprocessor directives directly translate to `if () {}`.

Instead of passing `--with-fenced-code` to `configure.sh`, now use
`MKD_FENCEDCODE` or `-ffencedcode`.

The output of `markdown -VV` will now display `FENCEDCODE` if the
feature is enabled and `!FENCEDCODE` if it is disabled rather than
displaying `FENCED-CODE` if the feature is enabled.
2015-07-13 03:24:30 +00:00
Nathan Phillip Brink 06f029eb7d Add documentation runtime definition list style API flags.
I missed this manpage earlier.
2015-07-13 03:24:30 +00:00
Nathan Phillip Brink ebd3526063 Fix manpage documentation on -fstyle and MKD_NOSTYLE. 2015-07-13 03:24:29 +00:00
Alessandro Ghedini b11ae91b32 fix manpages errors 2011-02-19 19:04:19 +01:00
david parsons db2092b36d Document MKD_EXTRA_FOOTNOTES 2011-02-17 20:39:29 -08:00
david parsons 36810e0567 s/Compatability/Compatibility/g 2011-01-09 10:10:48 -08:00
david parsons f0dc93589e Update the MKD_ flags section in the markdown(3) manpage. 2010-11-22 13:43:37 -08:00
david parsons 668cd76aec Describe more markdown feature flags. 2010-10-22 15:32:11 -07:00
David Parsons 9131d15a85 Write the first (clumsy) pass at a mkd-callbacks manpage, and .Xr
it the other manpages as appropriate.
2010-02-16 20:11:54 -08:00
David Parsons 8c5936dde6 Documentation corrections by Josh Wood 2009-10-05 07:34:45 -07:00
David Parsons 281ef43a52 Document (briefly and incoherently) the table extension 2009-08-03 23:27:51 -07:00
David Parsons 268bd67729 Document MKD_SAFELINK and MKD_AUTOLINK 2009-05-30 12:39:51 -07:00
David Parsons ac59073ea1 1. Attempt to update the documentation for the new functions.
2. Fix broken parameter order in xml.c
3. publish mkd_generatexml, mkd_xml in mkdio.h
2009-05-12 12:37:59 -07:00
David Parsons 5235b4273c Remove all references to the (not used since 0.9!) MKD_QUOT flag.
Be a little more descriptive about what MKD_TAGTEXT does.
2009-05-01 19:21:37 -07:00
David Parsons 4456632ae5 Roll up to compatability with MarkdownTest_1.0.3 (features not documented
in the language definition at Daringfireball) and add in compatability flags
to programmatically revert back to 1.0 compatability mode for testing
purposes.

The new markdown flag MKD_1_COMPAT turns on trailing space trimming of
the first line of codeblocks, and turns off support for implicit reference
links ([links] rather than [links][]);  it is enabled in the `markdown`
program with the flag -f1.0 (-F0x2000)
2009-02-27 22:47:03 -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 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
David Parsons 57a7912891 Document MKD_STRICT 2008-09-03 11:37:44 -07:00
david parsons 5acd4933bf Update the documentation to refer to MMIOT* instead of MMIOT 2008-01-23 11:52:12 -08:00
david parsons c8b8c52890 Update the manpages to follow the latest published interface,
add a manpage for new functions, modify the makefile to add
a rule to install example programs (just theme for now) and
modify the manpage installer to add links to mkd-functions(3)
2008-01-19 00:24:44 -08:00
david parsons cb3fb688bb Document the MKD_QUOT, MKD_NOHEADER, MKD_TABSTOP flags. 2008-01-13 15:03:44 -08:00
david parsons f33e9f3bbb Use the new **MMIOT** abstract type in the manpage instead of void *blob 2008-01-13 14:33:02 -08:00
david parsons 19db8db1c0 Take out the (#if 0'ed) code to expand > to > in text().
Correct the mislabeled MKD_NOPANTS reference in markdown.3
2008-01-10 15:02:16 -08:00
david parsons 0ddb1dc162 New function isthisspace() which returns true if (isspace() || EOF); replaces
a bunch of places where boundary conditions are checked and need to include
^ and $
2008-01-10 14:43:41 -08:00
david parsons 9604cfcf25 Change the library manpage to say that mkd_text() returns an int 2008-01-08 00:26:50 -08:00
david parsons 19d8121897 Implement MKD_NOIMAGE, MKD_NOLINKS, MKD_NOSMARTY; reparse the target
text of [links][]   (so I can embed an image inside a link without
much agonised screaming);  fix a bug where [link](immediate) doesn't
expand properly.
2007-12-22 18:45:41 -08:00
David Parsons 732bb45cfc misc manpage and function scope repairs 2007-12-22 13:02:10 -08:00
david parsons 22f53ba4ea Write the manpage for the markdown functions, modify the makefile so
all of the manpages are correctly installed.
2007-12-22 00:56:10 -08:00