Commit Graph
1146 Commits
Author SHA1 Message Date
david parsons 90aeed07e3 update the callback creation functions to use the proper arguments 2023-12-13 21:40:29 -08:00
david parsons deca3b64b0 okay, the whole callback structure was a hot mess; change it so that every different callback has its own date & free function 2023-12-13 21:31:04 -08:00
david parsons 2e2ddad4db set the version to 3.0.0b 2023-12-11 19:50:46 -08:00
david parsons 6fbfeb9116 fix a handful of places where I either didn't guard against underflows or null pointers; add test cases for them in crash.t 2023-12-11 19:42:37 -08:00
david parsons a096c1a3aa fix some brokenness in markdown extra footnotes that made adjacent footnotes not render properly 2023-08-13 19:54:21 -07:00
david parsons faa5150346 add the new runtime flag ALT_AS_TITLE; if an image has no title, use the alt text as the title 2023-02-21 11:03:12 -08:00
david parsons 5d13c2828d add config.sed to the list of config files (to avoid HILARIOUS errors if I simply rsync a discount to a different machine 2023-01-26 18:17:11 -08:00
david parsons 34d18df915 up to v 3.0.0a v3.0.0a 2022-10-27 11:35:18 -07:00
david parsons 262c7c7dba fix code indentation in a test program in configure; tweak title
generation in xmlpage to stop gcc & clang from complaining about
dangling elses
2022-10-27 11:19:39 -07:00
David Seifert 7afa5c6242 Make C99 clean
* Clang 16 (and likely GCC 14) will enforce strict C99 semantics
  and break old K&R C declarations and require correct C89
  function prototypes.

Bug: https://bugs.gentoo.org/870952
Clang: https://discourse.llvm.org/t/configure-script-breakage-with-the-new-werror-implicit-function-declaration/65213/9
2022-10-27 11:08:49 -07:00
david parsons e451aac683 add a new testcase to verify that -> ... <- works properly 2022-10-22 20:33:57 -07:00
david parsons ef25172009 start tweaking in preprocessor support; start with a rough m4 framework 2022-10-22 20:33:17 -07:00
david parsons 4a73e7f7d6 have all of the extensions code guarded by checking against MKD_STRICT 2022-10-05 12:22:28 -07:00
david parsons 37b22a997e match the descriptions for MKD_STRICT in mkdio.h.in & markdown.h 2022-10-04 12:27:16 -07:00
david parsons 583969803f hunt down and remove all references to the NORELAXED flag (now STRICT) 2022-10-04 12:22:55 -07:00
david parsons 2206091f80 add a fistful of test cases for the new! improved! Markdown.pl compatible <tags> 2022-10-04 12:12:54 -07:00
david parsons eff5405d86 rework the tag handler to more closely adhere to Markdown.pl's observed behavior; also treat incomplete tags as actual tags in compatability mode (-fstrict) 2022-10-04 12:12:09 -07:00
david parsons e12437122a rolling in the v2.2.7c fix to tag behavior patch 2022-10-04 12:07:49 -07:00
david parsons 9edb0e5908 weird behavior on freebsd 4.8 w/ gcc 2.95.4; if a #ifdef ... #else ... #endif wraps the end of a if () it pukes up an error about a syntax error in a macro; pull those tests out and conditionally #define a macro instead 2022-10-04 11:51:29 -07:00
david parsons 376656c77c the behavior of tags-starting-with-alpha-/-! was not like that of the reference implementation; fixed (in a very script-kiddy leaky fashion which I can't resolve with a runtime flag thanks to the 32 bit flags field in the 2.x series :-( 2022-10-04 11:49:20 -07:00
david parsons 10c99d3a64 left out <sys/wait.h> 2022-08-02 09:45:17 -07:00
david parsons 97784f4ca5 don't use WNOHANG in waitpid; check child status to see if the formatter exited normally or abended & return the original code fragment if the latter 2022-08-02 09:34:31 -07:00
david parsons 5b6e5b0e07 change the external code block formatting option into an actual external code block formatter 2022-08-01 13:41:33 -07:00
david parsons 26ba488a8a make the new function hoptdescribe(), which is exactly like hoptusage() except it has an additional verbose flag that tells it to do a more described list of the options 2022-07-31 23:34:13 -07:00
david parsons f8512ad0f0 streamline the exerciser make.include; use the toplevel .c.o rule to make objects, DON'T use $< when making executables because bsd make populates it with MKDLIB, which doesn't actually work 2022-07-30 23:29:36 -07:00
david parsons 6c015711e0 change fenced code behavior to not have a leading newline before the first line within the fence 2022-07-30 23:20:20 -07:00
david parsons 89f1dfdef7 more tweaking; when I include $(MKDLIB) as a dependency for an exerciser test, $< disappears when compiling on netbsd8? 2022-07-20 17:13:14 -07:00
david parsons 380229266f don't forget to set up LD_LIBRARY_PATH when running the exerciser tests 2022-07-30 07:50:08 -07:00
david parsons 6e03172bea tweak the makefiles to ensure that libmarkdown (a synthetic target) is make before any of the executables are assembled during a parallel make 2022-07-30 14:39:42 +00:00
david parsons 25f24b5bf4 rework how flags are initialized & configured for <?theme commands 2022-07-29 23:59:48 -07:00
david parsons 436a0c033e change from submakes to included makefiles 2022-06-22 13:43:51 -07:00
david parsons 4cdcac0d90 by request change the document type from html 4.0 to whatever the current version of html is (currently 5) 2022-06-19 17:47:30 -07:00
david parsons 63f542f34d silence the commands to make the exerciser programs 2022-06-18 09:08:48 -07:00
david parsons b81982c8a7 didn't catch one of the -C's in the exerciser makes? 2022-06-18 08:56:18 -07:00
david parsons 487c07f4cf working around the embedded gnuism is harder that I thought 2022-06-18 02:29:03 -07:00
david parsons 85684a0b79 bitten by a GNUism; I was using make -C to build the exercisers, which isn't portable 2022-06-18 02:23:20 -07:00
david parsons 4fecf0bd46 xmlpage had a variable declaration in the middle of a block 2022-06-18 02:11:23 -07:00
david parsons f4b7dd8b64 move the -lmarkdown to the END of the commandline where I link the flags exerciser program, because otherwise it doesn't get properly included in the link on one of my mips linux boxes? 2022-06-18 02:00:54 -07:00
david parsons 066d0ed47c I had a variable defined in the middle of a block, which is a C nocando. 2022-06-18 01:22:16 -07:00
david parsons 1c3c0e9d39 Merge branch 'main' of github.com:Orc/discount into main 2022-06-18 00:27:36 -07:00
Orc 8a876a86e7 Merge pull request #256 from McSinyx/xhtml-h1-title
Add H1 title support for makepage
2022-06-12 23:34:39 -07:00
Nguyễn Gia Phong d0f81ec9be Add H1 title support for makepage 2022-06-10 18:02:33 +09:00
david parsons a0d2a96024 when checking character classes move the utf-8 check in front of all of the other checks; some versions of MSC have a debug mode so if a character isn't either 7-bit ascii or EOF the character class check functions will abort the program. Like, um, yeah, way to creep those standards, people! 2022-05-30 13:32:29 -07:00
david parsons 30ac4a5b1c shut up the 'nothing to be done' message in this submake. 2022-05-13 23:48:51 -07:00
david parsons 57ef3dd3d2 tweak the exerciser makefile a bit; have the toplevel makefile build the exerciser programs as part of make all 2022-05-13 22:33:56 -07:00
david parsons 5ae6841337 voidify the say() function in tests/exercisers/flags.c 2022-05-13 22:27:29 -07:00
david parsons fa3def69c7 in the flags exerciser, put all output to stdout, /not/ stderr 2022-05-13 22:19:51 -07:00
david parsons e42b39d8ed pass @LD_LIBRARY_PATH@ to function checkers in tests/exercisers 2022-05-13 22:11:59 -07:00
david parsons 8a04e31105 add some tests against null flag parameters 2022-05-13 21:55:54 -07:00
david parsons 39874c6072 use -I$(TOPDIR) & -L$(TOPDIR) when building things in tests/exercisers 2022-05-13 21:44:50 -07:00