Commit Graph
253 Commits
Author SHA1 Message Date
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 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 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 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 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 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 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
david parsons 8d9707a4fa add spotless recursion; pass TOPDIR to the test/exercisers so I can construct an appropriate @LD_LIBRARY_PATH@ for running the test programs 2022-05-13 21:25:50 -07:00
david parsons 5fa07a501e clean the exercisers directory when cleaning everything else 2022-05-13 21:00:33 -07:00
david parsons d9847e36be add an exerciser to verify flag set, flag clear, and flag copy 2022-05-13 20:14:37 -07:00
david parsons 74f6bd9b49 checkline was still having problems with properly detecting fenced code blocks 2022-04-11 14:25:12 -07:00
david parsons 1321a22ecd first pass at collapsing fenced code blocks into regular paragraphs 2022-04-07 22:36:36 -07:00
david parsons 304344cf1f I was a little too aggressive when stripping out the recursive uniquification (& redo the test case to reflect starting sequences at zero instead of 1 2022-03-23 16:10:58 -07:00
david parsons 599617843e implement a toc label uniquifier 2022-03-22 17:01:14 -07:00
david parsons 38b2ce4b5c work around a bug with some implementations of tr that don't map \n to a newline 2022-03-21 13:56:44 -07:00
david parsons 618fdc5d5e attempt to fix the defect where footnote links in <>'s are not trimmed 2021-06-07 11:57:39 -07:00
david parsons 53965d67c8 add a testcase for empty ## 2020-03-28 23:21:58 -07:00
david parsons b9e867b574 redo the whole flags dealie as an opaque blob 2019-12-07 22:49:52 -08:00
david parsons b52ec440d4 strip out MKD_STRICT as a single flag (convert it into a composite flag that turns off a whole bunch of extensions); use that flagbit to disable github checkbox items, strip out MKD_DLIST as a single flag (convert it into a mask of MKD_DLDISCOUNT|MKD_DLEXTRA, and rework pgm_options so that 'strict' and 'relaxed' apply only to emphasis and 'standard' is the flag that sets & clears flags to make it closer to the standard. Version 3 because I'm fucking with the published interface 2019-04-14 20:56:55 -07:00
david parsons 18b65b162c add two more tests (unfinished fenced code block, paragraph then fenced code block) to codeblock.t 2019-02-10 10:05:34 -08:00
david parsons 8cc83f10c2 add a test case for a piece of fenced code with trailing spaces after the opening ~~~ 2019-01-31 05:47:19 -08:00
david parsons e02f8005ee add a fenced code block with embedded html 2019-01-29 21:39:17 -08:00
david parsons 4fba9d82a9 push the fencedcode block handler up to the toplevel scanner so it will handle blank lines inside the fence 2019-01-29 17:46:10 -08:00
david parsons c4c753da12 add in a handful of test to verify that empty pandoc headers are not auto-populated with % 2018-09-07 15:41:40 -07:00
david parsons 0d01a2c9c0 to b3 2018-06-16 11:51:57 -07:00
david parsons 60539e2af3 add a testcase for indented last line in html block with trailing text 2018-05-26 18:59:18 -07:00
david parsons 7352ac2178 add a README for the tests/data directory 2018-03-10 14:05:26 -08:00
david parsons f8fa8c05c0 add a test for m-e footnotes containing multiple paragraphs of different markdown stuff 2018-03-10 11:18:51 -08:00
david parsons 74689abf23 update the markdown extra footnote tests for the new format 2018-03-09 22:19:05 -08:00
david parsons aa2f34f0bc check for non-null T(link) in the safelink function; rename paranoia.t to safelink.t, add a couple more tests for safelinks 2017-11-23 04:44:24 +00: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 f76c08670b Tweak superscript handling to be able to superscript something wrapped in html 2017-01-28 11:45:20 -08:00
david parsons b40018e9e9 Clean up the indentation in fencedcodeblock() 2017-01-26 15:33:14 -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 1804f01868 Add a test for the <form> ... </form> html block element 2016-12-23 01:28:57 -08:00
david parsons aa9a54bddb Update the mun\CC\83oz test case for a text fragment with an 0xff 2016-07-16 22:50:44 -07:00
david parsons 33facb8910 More tweaks to the data corruption tests; revert the sources of the 5 -ftabstop
tests so that the input has tabs again, but the output has the tab expanded to
a (wrong, but markdown-spec) 4-space indent
2016-05-22 13:28:25 -07:00
david parsons 4e81c7828d In the muñoz tests, -ftabstop all of the cases that have a tabs
worth of spaces on them.  Also push the try commands over to the left
margin.
2016-05-22 12:08:37 -07:00
david parsons f3681ccc8d Eat one of the two remaining flag bits (64-bin flag_t, here we
come!) to make LaTeX support a runtime flag.
2016-05-21 21:58:50 -07:00