Commit Graph

  • 88913580f1 when finding the installer, check that -s works (doesn't work on Minix 3?) david parsons 2017-11-15 20:10:00 +00:00
  • beeb569412 Correct makepage & theme to use the new set_flag() return scheme (0==success, !0==pointer to bogus flag) david parsons 2017-09-25 12:44:43 -07:00
  • e199a7aa9e if an unknown flag was in the middle of a comma-delimited flag string (like -flatex,bogus,footnote), the markdown program would incorrectly report the first flag as unknown (because set_flag returned 0 on error, 1 on success and the strtok() of the flag string had already replaced the commas up to that point with nulls.) david parsons 2017-09-25 12:42:47 -07:00
  • 3f736c518a Tweak the install rule to install a GNU-style .pc file iff @MK_PKGCONFIG@ is not defined as # david parsons 2017-08-22 15:52:14 -07:00
  • b52b22e12c update configure.inc origin/master origin/HEAD david parsons 2017-04-17 07:26:42 -07:00
  • 32449aec31 reformatted the README david parsons 2017-04-16 01:09:52 -07:00
  • 48ec145dca forward-port the hand-built config.sed generator into the latest configure.inc david parsons 2017-04-16 00:02:52 -07:00
  • bd41345fb7 use @DISTCLEAN@ for make distclean david parsons 2017-04-15 23:55:34 -07:00
  • 73b0392751 update to the latest configure.inc david parsons 2017-04-15 23:53:21 -07:00
  • ac425bc85d Hand-resolve a conflict in the msvc Makefile david parsons 2017-03-25 06:03:08 -07:00
  • eb15c58616 point stderr at /dev/null so that errors (which we don't care about) won't be visible david parsons 2017-03-25 05:49:00 -07:00
  • 2a1c5b52fa If we could open the pipe, pclose it even if it doesn't give us any output v2.2.3b8 origin/biteme david parsons 2017-03-24 18:22:12 -07:00
  • 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. david parsons 2017-03-24 15:59:54 -07:00
  • b33a89d780 Forgot to add MKD_EXPLICITLIST to mkdio.h.in for 2.2.3b6, so bump the beta up one more for that v2.2.3b7 david parsons 2017-03-08 20:06:39 -08:00
  • 519c30443f Add MKD_EXPLICITLIST to mkdio.h.in david parsons 2017-03-08 19:55:51 -08:00
  • 32feae5ed4 Add EXPLICITLIST to flags.c david parsons 2017-03-08 07:11:01 -08:00
  • 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. v2.2.3b6 david parsons 2017-03-08 02:32:37 -08:00
  • aa0deb7203 Fix a typo david parsons 2017-02-17 11:27:26 -08:00
  • 8626e95f65 try to deobfuscate the description david parsons 2017-02-07 18:44:03 -08:00
  • f4c875832c fix typos david parsons 2017-02-07 18:40:15 -08:00
  • 59cb62d7f5 Tweak the debug program inside notspecial so that it checks every filename passed on the command line. david parsons 2017-02-05 18:03:12 -08:00
  • 140521dc48 Update the bnumber one more time david parsons 2017-02-05 05:01:17 -08:00
  • 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. david parsons 2017-02-05 01:17:41 -08:00
  • 0e94c0d422 Use st_mode, NOT st_flags david parsons 2017-02-05 00:49:39 -08:00
  • 3b3bcc58a4 Revert the check for st_flags (I should be using st_mode) david parsons 2017-02-05 00:49:18 -08:00
  • 0bc48e052f Make sure struct stat has a st_flags field david parsons 2017-02-05 00:46:47 -08:00
  • 0848a5cdbb Change the header comment to reflect what notspecial() actually does in a non-stat()ed environment. david parsons 2017-02-05 00:22:21 -08:00
  • dfa77baba7 (the return from notspecial() was reversed) david parsons 2017-02-04 23:56:46 -08:00
  • 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. david parsons 2017-02-04 23:55:35 -08:00
  • 82f9bf3b3a Add a README for the utilities in the tools subdirectory david parsons 2017-02-03 13:03:36 -08:00
  • 3351a668c8 Hack in gnu-style double dash prefix support for whole-word options david parsons 2017-02-03 12:49:47 -08:00
  • 925aa18f2a Tweak the bnumber after squashing the gethopt-uber-alles branch back into master david parsons 2017-02-03 12:39:02 -08:00
  • 82c24c6a31 Merge branch 'gethopt-uber-alles' david parsons 2017-02-03 12:37:58 -08:00
  • d41cf2e526 Merge pull request #167 from mloskot/ml/gethopt-uber-alles-msvc David Parsons 2017-02-03 12:17:14 -08:00
  • 5c90e84c56 Add other utilities to MSVC build. Mateusz Łoskot 2017-02-03 10:32:59 +01:00
  • 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} david parsons 2017-02-02 22:03:37 -08:00
  • dbcfc75fc6 Add the git branch name into the version string david parsons 2017-02-02 20:56:04 -08:00
  • 79367e6284 Add Makefile for NMAKE and Visual C++ toolset. origin/gethopt-uber-alles Mateusz Łoskot 2017-02-03 00:46:43 +01:00
  • 1a2969db77 Merge pull request #166 from mloskot/ml/msvc David Parsons 2017-02-03 01:00:58 -08:00
  • df8c0c5eee Add Makefile for NMAKE and Visual C++ toolset. Mateusz Łoskot 2017-02-03 00:46:43 +01:00
  • 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} david parsons 2017-02-02 22:03:37 -08:00
  • ce4d3f4cac gethopt()ify theme david parsons 2017-02-02 21:17:52 -08:00
  • 8231cbdee6 make a COMMON define for modules that most of the executables here use david parsons 2017-02-02 21:05:43 -08:00
  • 7b26512d01 Add the git branch name into the version string david parsons 2017-02-02 20:56:04 -08:00
  • 1c712469dd Make a new function (hoptusage()) to fabricate an uptodate usage: ... message based on opts[] instead of relying on a hardcoded usage string. david parsons 2017-02-02 20:43:18 -08:00
  • 3e8386d071 Use gethopt() for options processing in markdown(8) & makepage(8) david parsons 2017-02-02 16:12:42 -08:00
  • 70f7e834a4 Merge pull request #164 from mloskot/ml/tags-include-config-h David Parsons 2017-02-02 14:54:22 -08:00
  • 11ee726446 include "config.h" (to pick up strncasecmp() if it's defined as a macro) Mateusz Łoskot 2017-02-02 23:46:51 +01:00
  • 5a35cd041e Revert the previous commit that took unistd.h out david parsons 2017-02-02 14:44:55 -08:00
  • 2874965cf1 Merge pull request #163 from mloskot/ml/remove-unistd-h David Parsons 2017-02-02 14:42:04 -08:00
  • 473e53845d Remove redundant <unistd.h> header as unused Mateusz Łoskot 2017-02-02 23:28:38 +01:00
  • 7fc40ce472 Tweak the for-testing version # once again david parsons 2017-02-02 14:34:34 -08:00
  • 166608c794 Merge pull request #162 from mloskot/ml/remove-unistd-h David Parsons 2017-02-02 14:32:15 -08:00
  • ed579626b6 Remove redundant <unistd.h> header as unused Mateusz Łoskot 2017-02-02 23:28:38 +01:00
  • 2b6cfbcf41 include "config.h" (to pick up strncasecmp() if it's defined as a macro) david parsons 2017-02-02 14:15:41 -08:00
  • 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. david parsons 2017-01-28 15:48:00 -08:00
  • aa7384c747 Tweak the b-version because of the superscript goop david parsons 2017-01-28 12:19:06 -08:00
  • f76c08670b Tweak superscript handling to be able to superscript something wrapped in html david parsons 2017-01-28 11:45:20 -08:00
  • 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.) david parsons 2017-01-26 23:40:04 -08:00
  • 7f917437df Document the --h1-title configuration option david parsons 2017-01-26 22:56:11 -08:00
  • d1e5461237 Update the description of the MKD_TAGTEXT flag david parsons 2017-01-26 18:02:31 -08:00
  • e5a3a4da84 Start nudging up to 2.2.3 david parsons 2017-01-26 15:46:17 -08:00
  • 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. david parsons 2017-01-26 15:42:33 -08:00
  • b40018e9e9 Clean up the indentation in fencedcodeblock() david parsons 2017-01-26 15:33:14 -08:00
  • 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) david parsons 2017-01-24 15:47:57 -08:00
  • 025e5be1b3 Add a manpage for gethopt(3) david parsons 2017-01-23 19:53:59 -08:00
  • 29e1aefd40 Include "config.h" to include a definition for bzero() on machines that don't have it. david parsons 2017-01-23 16:09:41 -08:00
  • 27eaf25b3b Fix a long standing typo in the header comment :-) david parsons 2017-01-23 16:05:48 -08:00
  • 6df7b7411c Add a dependency line for gethopt david parsons 2017-01-23 16:04:01 -08:00
  • c422422032 Use gethopt() to process command-line options instead of doing it by hand. david parsons 2017-01-23 16:03:09 -08:00
  • c13ac6c979 Link gethopt.o into mkd2html david parsons 2017-01-23 16:02:27 -08:00
  • d08bd68128 q&d getopt clone for mkd2html that accepts both full-word & single character options. david parsons 2017-01-23 16:02:07 -08:00
  • 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[] david parsons 2017-01-22 00:15:41 -08:00
  • 2ebcb044d2 Take out the T(x) hack from mkd_css() & mkd_xml() and instead strdup() to return free()able memory. david parsons 2017-01-22 00:02:28 -08:00
  • 9d0de94005 In mkd_toc(), take the hijack-the-T() hack out and strdup() the generated toc into the target pointer. david parsons 2017-01-21 23:57:11 -08:00
  • 3035d069e4 Up to version 2.2.2 v2.2.2 david parsons 2017-01-18 18:42:06 -08:00
  • 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. david parsons 2017-01-18 18:41:34 -08:00
  • 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. david parsons 2017-01-18 18:38:42 -08:00
  • a953cffe3f Update the toc tests to follow the new format & flags for toc label formatting. david parsons 2017-01-18 18:36:52 -08:00
  • 58ae3a35db Change the explaination for URLENCODEDANCHOR to reflect it now being perverted into HTML5 encoding. david parsons 2017-01-18 18:35:56 -08:00
  • 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.) david parsons 2016-12-31 22:07:18 -08:00
  • b87635d99e Check for the noreturn attribute (for no good reason as of yet) david parsons 2016-12-31 19:38:10 -08:00
  • 07c8114da9 call Csreparse with IS_LABEL set, so that embedded html will be stripped out david parsons 2016-12-31 19:37:38 -08:00
  • 641c6917a2 In Csreparse, pass our flags down to ___mkd_reparse david parsons 2016-12-31 18:36:50 -08:00
  • 72c99f10b2 When generating a TOC, don't anchor-encode the human-readable contents of the links . david parsons 2016-12-31 18:18:32 -08:00
  • c5a08735f0 "quote" "everything" "when" "I" "generate" "librarian.sh" david parsons 2016-12-31 01:15:21 -08:00
  • 5f9ad54ca2 Tweak some of the program flow when generating config.sed to better handle file cleanup. david parsons 2016-12-31 00:01:52 -08:00
  • 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. david parsons 2016-12-30 23:46:54 -08:00
  • 1fe2227ba7 Add a checking function for the gcc "noreturn" attribute david parsons 2016-12-30 19:09:21 -08:00
  • d9c4985a9d put spurious braces around the DO_OR_DIE that puts out the contents of the title just to make clang 3.5 stfu david parsons 2016-12-26 20:58:50 -08:00
  • 2985a3e508 Always generate a title element, even if it's empty david parsons 2016-12-26 20:56:14 -08:00
  • afb2660145 Always generate a <title> for the html header, even if it doesn't contain anything david parsons 2016-12-26 20:37:16 -08:00
  • 1804f01868 Add a test for the <form> ... </form> html block element david parsons 2016-12-23 01:28:57 -08:00
  • 2b55c85ad0 Add <form> .. </form> to the set of known block tags david parsons 2016-12-23 01:25:45 -08:00
  • 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 david parsons 2016-11-14 21:37:10 -08:00
  • 8c670e04da Bring the installation instructions a little closer to up to date. david parsons 2016-09-22 21:23:43 -07:00
  • 25cf8d4e29 If building with pkg-config goop, do not assume that $PKGDIR is a subdirectory of $LIBDIR david parsons 2016-09-22 21:15:10 -07:00
  • 29d617c6d0 If discount is being built w/o pkg-config goop, don't try to make the directories that pkg-config wants to put their .pc files into. david parsons 2016-09-22 21:13:09 -07:00
  • 7049c95664 Don't assume MKD_EOLN is ^C; I may change it to \r so it can be swept up in isspace() instead of having to do isspace(c) || c == MKD_EOLN special checks for david parsons 2016-09-22 21:11:14 -07:00
  • 24b1046fb1 Check for both automake & pkg-config when trying to autodetect whether to make a pkg-config(1) .pc file david parsons 2016-09-22 21:09:42 -07:00