My C implementation of John Gruber's Markdown markup language
C Roff Perl6 C++ Makefile Shell Perl
Latest commit aa0deb7 Feb 17, 2017 @Orc Fix a typo
Permalink
Failed to load latest commit information.
Plan9 Convert --with-dl to runtime flags for issue #124. Jul 13, 2015
msvc Merge branch 'gethopt-uber-alles' Feb 3, 2017
tests Tweak superscript handling to be able to superscript something wrappe… Jan 28, 2017
tools Add a README for the utilities in the tools subdirectory Feb 3, 2017
COPYRIGHT Left out the list # for the third clause! Mar 17, 2013
CREDITS change domain from pell.chi.il.us to pell.portland.or.us Jan 9, 2014
Csio.c In Csreparse, pass our flags down to ___mkd_reparse Jan 1, 2017
INSTALL Document the --h1-title configuration option Jan 27, 2017
Makefile.in (the return from notspecial() was reversed) Feb 5, 2017
README change domain from pell.chi.il.us to pell.portland.or.us Jan 9, 2014
VERSION Update the bnumber one more time Feb 5, 2017
amalloc.c Add config.h to the includes for amalloc (for the if #define to make … Mar 22, 2016
amalloc.h 1. Add the new `amalloc` module, which (if enabled with Apr 3, 2008
basename.c Reversed the test for basenames() [ick] Jan 30, 2010
configure.inc "quote" "everything" "when" "I" "generate" "librarian.sh" Dec 31, 2016
configure.sh Revert the check for st_flags (I should be using st_mode) Feb 5, 2017
css.c Take out the T(x) hack from mkd_css() & mkd_xml() and instead Jan 22, 2017
cstring.h Rework the internals of CLIP() so that it always assigns something to… Jan 24, 2012
docheader.c Redo the internals for pandoc-style headers; don't just carry Dec 9, 2010
dumptree.c handle cleanup from the caller Oct 25, 2015
emmatch.c s/compatable/compatible/ Oct 20, 2013
flags.c Eat one of the two remaining flag bits (64-bin flag_t, here we May 22, 2016
generate.c Tweak superscript handling to be able to superscript something wrappe… Jan 28, 2017
gethopt.3 try to deobfuscate the description Feb 8, 2017
gethopt.c Fix a typo Feb 17, 2017
gethopt.h Make a new function (hoptusage()) to fabricate an uptodate usage: ... Feb 3, 2017
github_flavoured.c Create the `gfm_string()` method that does github flavoured markdown Jun 1, 2012
h1title.c Add --h1-title as an option to configure.sh; this enables code that uses Jan 24, 2017
html5.c Optimize the html block tag list handler; standard html tags now live… Jul 22, 2011
libmarkdown.pc.in Added pkg-config file Jul 26, 2016
main.c Make a new function (hoptusage()) to fabricate an uptodate usage: ... Feb 3, 2017
makepage.1 change domain from pell.chi.il.us to pell.portland.or.us Jan 9, 2014
makepage.c Make a new function (hoptusage()) to fabricate an uptodate usage: ... Feb 3, 2017
markdown.1 Convert urlencodedanchor to a runtime flag for issue #124. Jul 13, 2015
markdown.3 Update the description of the MKD_TAGTEXT flag Jan 27, 2017
markdown.7 Write the first (clumsy) pass at a mkd-callbacks manpage, and .Xr Feb 17, 2010
markdown.c Add a 'dirty' flag to the Document structure & set it whenever a call… Jan 28, 2017
markdown.h Add a 'dirty' flag to the Document structure & set it whenever a call… Jan 28, 2017
mkd-callbacks.3 Write the first (clumsy) pass at a mkd-callbacks manpage, and .Xr Feb 17, 2010
mkd-extensions.7 Strip out references to 'relaxed-emphasis' configuration (it's not us… Feb 5, 2015
mkd-functions.3 Documentation patches from David Banks; correct the documentation to … Feb 28, 2011
mkd-line.3 1. Attempt to update the documentation for the new functions. May 12, 2009
mkd2html.1 change domain from pell.chi.il.us to pell.portland.or.us Jan 9, 2014
mkd2html.c (the return from notspecial() was reversed) Feb 5, 2017
mkdio.c Add a 'dirty' flag to the Document structure & set it whenever a call… Jan 28, 2017
mkdio.h.in Eat one of the two remaining flag bits (64-bin flag_t, here we May 22, 2016
mktags.c include "config.h" (to pick up strncasecmp() if it's defined as a macro) Feb 2, 2017
notspecial.c Tweak the debug program inside notspecial so that it checks every fil… Feb 6, 2017
pgm_options.c Remove redundant <unistd.h> header as unused Feb 2, 2017
pgm_options.h Tweak the show_flags() function so that if it's called verbosely Jan 27, 2017
resource.c FINALLY address the bug where m-e footnotes lose numbering when Jan 18, 2015
setup.c Optimize the html block tag list handler; standard html tags now live… Jul 22, 2011
tags.c include "config.h" (to pick up strncasecmp() if it's defined as a macro) Feb 2, 2017
tags.h Add a prototype for mkd_deallocate_tags() Jan 2, 2011
theme.1 change domain from pell.chi.il.us to pell.portland.or.us Jan 9, 2014
theme.c (the return from notspecial() was reversed) Feb 5, 2017
toc.c In mkd_toc(), take the hijack-the-T() hack out and strdup() the gener… Jan 22, 2017
version.c.in Make defining BRANCH depend on the branch; if I'm on the master branc… Feb 3, 2017
xml.c Take out the T(x) hack from mkd_css() & mkd_xml() and instead Jan 22, 2017
xmlpage.c put spurious braces around the DO_OR_DIE that puts out the contents o… Dec 27, 2016

README

DISCOUNT is a implementation of John Gruber's Markdown markup
language.   It implements, as far as I can tell, all of the
language as described in
<http://daringfireball.net/projects/markdown/syntax>
and passes the Markdown test suite at
<http://daringfireball.net/projects/downloads/MarkdownTest_1.0.zip>

DISCOUNT is free software written by David Parsons <orc@pell.portland.or.us>;
it is released under a BSD-style license that allows you to do
as you wish with it as long as you don't attempt to claim it as
your own work.

Most of the programs included in the DISCOUNT distribution have
manual pages describing how they work.

The file INSTALL describes how to build and install discount