david parsons
b52b22e12c
update configure.inc
2017-04-17 07:26:42 -07:00
david parsons
32449aec31
reformatted the README
2017-04-16 01:09:52 -07:00
david parsons
48ec145dca
forward-port the hand-built config.sed generator into the latest configure.inc
2017-04-16 00:02:52 -07:00
david parsons
bd41345fb7
use @DISTCLEAN@ for make distclean
2017-04-15 23:55:34 -07:00
david parsons
73b0392751
update to the latest configure.inc
2017-04-15 23:53:21 -07:00
david parsons
ac425bc85d
Hand-resolve a conflict in the msvc Makefile
2017-03-25 06:03:08 -07:00
david parsons
eb15c58616
point stderr at /dev/null so that errors (which we don't care about) won't be visible
2017-03-25 05:49:00 -07:00
david parsons
2a1c5b52fa
If we could open the pipe, pclose it even if it doesn't give us any output
2017-03-24 18:22:12 -07:00
david parsons
d709662d5a
Rework branch so it calls the appropriate git function all by itself
...
(git describe is broken; use git branch and awk for the starred branch instead)
and then bump the b-version# up to accomodate it.
2017-03-24 15:59:54 -07:00
david parsons
b33a89d780
Forgot to add MKD_EXPLICITLIST to mkdio.h.in for 2.2.3b6, so bump the beta up one more for that
2017-03-08 20:06:39 -08:00
david parsons
519c30443f
Add MKD_EXPLICITLIST to mkdio.h.in
2017-03-08 19:55:51 -08:00
david parsons
32feae5ed4
Add EXPLICITLIST to flags.c
2017-03-08 07:11:01 -08:00
david parsons
6e52af8dd8
Add in paranoid list splitting (the default behavior many many versions
...
ago before I realized it wasn't the standard) (and take the last of the
32-bit flag mask for it) between adjacent ordered and unordered lists.
2017-03-08 02:32:37 -08:00
david parsons
aa0deb7203
Fix a typo
2017-02-17 11:27:26 -08:00
david parsons
8626e95f65
try to deobfuscate the description
2017-02-07 18:44:03 -08:00
david parsons
f4c875832c
fix typos
2017-02-07 18:40:15 -08:00
david parsons
59cb62d7f5
Tweak the debug program inside notspecial so that it checks every filename passed on the command line.
2017-02-05 18:03:12 -08:00
david parsons
140521dc48
Update the bnumber one more time
2017-02-05 05:01:17 -08:00
david parsons
4d4c78f6e2
I'd forgotten how the whole business of the file type masks worked in the
...
stat structure, so I had to replace everything with calls to the S_ISxxx()
functions. And I wrote debug scaffolding (compile with -DDEBUG to make
a little program that says whether its argument is special or not) so I could
figure out what's going on.
2017-02-05 01:17:41 -08:00
david parsons
0e94c0d422
Use st_mode, NOT st_flags
2017-02-05 00:49:39 -08:00
david parsons
3b3bcc58a4
Revert the check for st_flags (I should be using st_mode)
2017-02-05 00:49:18 -08:00
david parsons
0bc48e052f
Make sure struct stat has a st_flags field
2017-02-05 00:46:47 -08:00
david parsons
0848a5cdbb
Change the header comment to reflect what notspecial() actually does in a non-stat()ed environment.
2017-02-05 00:22:21 -08:00
david parsons
dfa77baba7
(the return from notspecial() was reversed)
2017-02-04 23:56:46 -08:00
david parsons
903a76ef84
Utility function for theme & mkd2html -- check a filename to see if it's
...
a special file that doesn't need to be deleted or to have a .html suffix
added to it. It only works on machines that have a stat() system call,
otherwise it thinks that nothing is special.
2017-02-04 23:55:35 -08:00
david parsons
82f9bf3b3a
Add a README for the utilities in the tools subdirectory
2017-02-03 13:03:36 -08:00
david parsons
3351a668c8
Hack in gnu-style double dash prefix support for whole-word options
2017-02-03 12:49:47 -08:00
david parsons
925aa18f2a
Tweak the bnumber after squashing the gethopt-uber-alles branch back into master
2017-02-03 12:39:02 -08:00
david parsons
82c24c6a31
Merge branch 'gethopt-uber-alles'
...
Conflicts:
Makefile.in
msvc/Makefile
msvc/README.md
2017-02-03 12:37:58 -08:00
david parsons
b26c88593b
Make defining BRANCH depend on the branch; if I'm on the master branch I don't
...
care about the branch name at all, otherwise I do. So make a little utility
program that I can feed the output from `git describe --all` into and which
returns either nothing (master branch) or "({name})" (with the quotes) if I'm
on branch {name}
2017-02-03 01:08:57 -08:00
david parsons
dbcfc75fc6
Add the git branch name into the version string
2017-02-03 01:08:35 -08:00
david parsons
88908550d6
Make defining BRANCH depend on the branch; if I'm on the master branch I don't
...
care about the branch name at all, otherwise I do. So make a little utility
program that I can feed the output from `git describe --all` into and which
returns either nothing (master branch) or "({name})" (with the quotes) if I'm
on branch {name}
2017-02-02 22:03:37 -08:00
david parsons
ce4d3f4cac
gethopt()ify theme
2017-02-02 21:17:52 -08:00
david parsons
8231cbdee6
make a COMMON define for modules that most of the executables here use
2017-02-02 21:05:43 -08:00
david parsons
7b26512d01
Add the git branch name into the version string
2017-02-02 20:56:04 -08:00
david parsons
1c712469dd
Make a new function (hoptusage()) to fabricate an uptodate usage: ...
...
message based on opts[] instead of relying on a hardcoded usage string.
2017-02-02 20:43:18 -08:00
david parsons
3e8386d071
Use gethopt() for options processing in markdown(8) & makepage(8)
2017-02-02 16:12:42 -08:00
david parsons
5a35cd041e
Revert the previous commit that took unistd.h out
2017-02-02 14:44:55 -08:00
david parsons
7fc40ce472
Tweak the for-testing version # once again
2017-02-02 14:34:34 -08:00
david parsons
2b6cfbcf41
include "config.h" (to pick up strncasecmp() if it's defined as a macro)
2017-02-02 14:15:41 -08:00
david parsons
b39005d43d
Add a 'dirty' flag to the Document structure & set it whenever a callback
...
changes (github issue #136 ) so that the next mkd_compile will regenerate
the document.
2017-01-28 15:48:00 -08:00
david parsons
aa7384c747
Tweak the b-version because of the superscript goop
2017-01-28 12:19:06 -08:00
david parsons
f76c08670b
Tweak superscript handling to be able to superscript something wrapped in html
2017-01-28 11:45:20 -08:00
david parsons
9b792090ce
Tweak the show_flags() function so that if it's called verbosely
...
it will show synonyms for named flags. (Calling it verbosely is
done by the `V` option, which is overloaded for verbosity when listing
flags.)
2017-01-26 23:40:04 -08:00
david parsons
7f917437df
Document the --h1-title configuration option
2017-01-26 22:56:11 -08:00
david parsons
d1e5461237
Update the description of the MKD_TAGTEXT flag
2017-01-26 18:02:31 -08:00
david parsons
e5a3a4da84
Start nudging up to 2.2.3
2017-01-26 15:46:17 -08:00
david parsons
9d6a4a9636
Process html block in compile (as well as in compile_document();
...
compile_document() needs to handle <style> blocks and compile() needs to
handle html blocks that are nested inside blockquotes, tables, lists, &tc.
2017-01-26 15:42:33 -08:00
david parsons
b40018e9e9
Clean up the indentation in fencedcodeblock()
2017-01-26 15:33:14 -08:00
david parsons
eaafb13ada
Add --h1-title as an option to configure.sh; this enables code that uses
...
the first h1 in a document as the document title (in mkd2html & theme)
2017-01-24 15:47:57 -08:00
david parsons
025e5be1b3
Add a manpage for gethopt(3)
2017-01-23 19:53:59 -08:00
david parsons
29e1aefd40
Include "config.h" to include a definition for bzero() on machines that don't have it.
2017-01-23 16:09:41 -08:00
david parsons
27eaf25b3b
Fix a long standing typo in the header comment :-)
2017-01-23 16:05:48 -08:00
david parsons
6df7b7411c
Add a dependency line for gethopt
2017-01-23 16:04:01 -08:00
david parsons
c422422032
Use gethopt() to process command-line options instead of doing it by hand.
2017-01-23 16:03:09 -08:00
david parsons
c13ac6c979
Link gethopt.o into mkd2html
2017-01-23 16:02:27 -08:00
david parsons
d08bd68128
q&d getopt clone for mkd2html that accepts both full-word & single character
...
options.
2017-01-23 16:02:07 -08:00
david parsons
ed64333f38
Make the horrible inline options parsing for mkd2html a teeny bit more
...
robust by not bothering to look for options unless there are at least
two arguments left in argv[]
2017-01-22 00:15:41 -08:00
david parsons
2ebcb044d2
Take out the T(x) hack from mkd_css() & mkd_xml() and instead
...
strdup() to return free()able memory.
2017-01-22 00:02:28 -08:00
david parsons
9d0de94005
In mkd_toc(), take the hijack-the-T() hack out and strdup() the generated toc
...
into the target pointer.
2017-01-21 23:57:11 -08:00
david parsons
3035d069e4
Up to version 2.2.2
2017-01-18 18:42:06 -08:00
david parsons
feb7505be1
Redo toc anchor generation to reduce namespace collisions (by encoding
...
out of namespace characters to -XX- hex sequences (except space, which
encodes to just -) in html4, %XX in html5 (formerly urlencodedanchor))
and strdup() the buffer in mkd_line() to get it out of my amalloc()
arena if discount is built with amalloc but the surrounding program
isn't.
2017-01-18 18:41:34 -08:00
david parsons
87835ec236
Add html5anchor as a synonym for urlencodedanchor (urlencoded is
...
depreciated, but will stick around like the unwanted guest until
the next major release) now that I'm doing html5 encoding there.
2017-01-18 18:38:42 -08:00
david parsons
a953cffe3f
Update the toc tests to follow the new format & flags for toc label formatting.
2017-01-18 18:36:52 -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
david parsons
11587f606e
Back out Paragraph->label (never actually implemented as a way
...
around collisions in TOC entries; I'm changing the anchor generator
so that it won't lose data as part of the text to anchor process.)
2016-12-31 22:07:18 -08:00
david parsons
b87635d99e
Check for the noreturn attribute (for no good reason as of yet)
2016-12-31 19:38:10 -08:00
david parsons
07c8114da9
call Csreparse with IS_LABEL set, so that embedded html will be stripped out
2016-12-31 19:37:38 -08:00
david parsons
641c6917a2
In Csreparse, pass our flags down to ___mkd_reparse
2016-12-31 18:36:50 -08:00
david parsons
72c99f10b2
When generating a TOC, don't anchor-encode the human-readable contents of the links .
2016-12-31 18:18:32 -08:00
david parsons
c5a08735f0
"quote" "everything" "when" "I" "generate" "librarian.sh"
2016-12-31 01:15:21 -08:00
david parsons
5f9ad54ca2
Tweak some of the program flow when generating config.sed to better handle file cleanup.
2016-12-31 00:01:52 -08:00
david parsons
95cf3cb000
Horrifying kludge to deal with destination directories with spaces in them;
...
a) quote filename arguments to AC_SUB (via the __ac_quote builtin), and
b) instead of using the shell to check for sed substitute markers (if I
do `echo "$*" | sed -e 's/;/\\;/'` it collapses a layer of backslashes
needlessly. It's awful enough to do "echo $* | sed -e 's/ /\\\\ /'`
(so sed won't eat the backslashes) but to do 'sed -e 's/ /\\\\\\\\ /'`
to keep sed + the shell from eating the backslashes) I generate the
little C program config.sed, which generates the sed pattern, escaping
the `;` and NOT collapsing backslashes.
Ugh. It's all pretty gross, but it looks like it works? At least
for discount.
2016-12-30 23:46:54 -08:00
david parsons
1fe2227ba7
Add a checking function for the gcc "noreturn" attribute
2016-12-30 19:09:21 -08: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
afb2660145
Always generate a <title> for the html header, even if it doesn't contain anything
2016-12-26 20:37:16 -08:00
david parsons
1804f01868
Add a test for the <form> ... </form> html block element
2016-12-23 01:28:57 -08:00
david parsons
2b55c85ad0
Add <form> .. </form> to the set of known block tags
2016-12-23 01:25:45 -08:00
david parsons
8c3a149b10
Use \r instead of ^C for the internal hard end of line marker; \r
...
counts as whitespace so I dont have to do isspace() || is MKD_EOLN
2016-11-14 21:37:10 -08:00
david parsons
b787bc3459
Strip out references to 'relaxed-emphasis' configuration (it's not used; it's
...
now the runtimeflag 'relaxed' (MKD_NORELAXED; set if you DON'T want relaxed
emphasis)
2015-02-05 09:16:16 -08:00
david parsons
d757b2aeca
New version (2.1.8)
2015-01-24 18:07:28 -08:00
david parsons
f339ba2bfb
Add a span test case for m-e footnotes
2015-01-18 12:20:05 -08:00
david parsons
46e147599f
FINALLY address the bug where m-e footnotes lose numbering when
...
they show up in nested element; I was not carrying the m-e reference#
inside the footnotes structure, but was instead carrying it in the
parent structure and not updating it. So I changed the footnotes structure
to include the reference + the list of footnotes, which made the misnumbering
go away on my tests.
2015-01-18 12:12:28 -08:00
david parsons
f9040ff400
Explicitly type main(), so c++ won't whine about it.
2014-11-01 20:56:31 -07:00
david parsons
2ba5646e72
Change the mail demangler to a debian-specific 'always mangle one way' hack.
...
(enabled with the configure.sh option --debian-glitch)
2014-10-09 11:07:11 -07:00
david parsons
83aee8fa9c
Add --with-unmangled-email compile-time flag to disable mailto: mangling
2014-10-09 08:18:37 -07:00
david parsons
4de75a3026
Tweak the #ifdefs for fenced code blocks so that if they aren't
...
enabled they aren't enabled ANYWHERE.
2014-08-07 23:37:54 -07:00
david parsons
abfd8b0020
Allow the magic output filename -, which means send output to
...
stdout instead of to a file.
2014-08-07 23:37:09 -07:00
david parsons
d3d5afae55
Fix a bug where autolink + github flavored markdown absorbs the ^C eoln
...
character into a link at the end of a line.
2014-06-27 14:59:25 -07:00
david parsons
196a7aea97
Revert changes that somehow worked their way into the code (patch
...
applied on github that was not pulled to the master. Grr.)
2014-01-22 02:11:17 -08:00
david parsons
4a6407e080
Strip out C++ comments that came from a merge
2013-10-22 09:43:36 -07:00
david parsons
76d070845c
Emit pages in utf-8 instead of us-ascii (simply a change to the Content-Type meta)
2013-10-22 09:27:04 -07:00
david parsons
7dda1e5f83
s/compatable/compatible/
2013-10-20 14:15:08 -07:00
david parsons
49abed29e7
Version 2.1.7, which is a pile of little tweaks and additional functionality
2013-10-08 22:26:43 -07:00
david parsons
c190405204
Incorrect bounds check when walking argv[]
2013-03-27 22:30:08 -07:00
david parsons
cb88400000
When defining WORD & DWORD, check first for the MS Windows WinDef.h file;
...
if found, include it instead of defining WORD & DWORD ourselves.
2013-03-20 22:34:43 -07:00
david parsons
45449d9c83
Left out the list # for the third clause!
2013-03-16 22:43:05 -07:00
david parsons
e496b6cc26
Version 2.1.6
2013-03-16 22:02:22 -07:00
david parsons
702b174c51
Release 2.1.6 with a three-clause BSD license
2013-03-16 22:02:11 -07:00