Commit Graph
1174 Commits
Author SHA1 Message Date
jessica parsons ae3f28f5de fix the tests for expected output from markdown -b<prefix> 2024-10-07 01:33:09 -07:00
jessica parsons 5443e322c3 tweak the test for zero in __mkd_io_strget so if it's <=0 it's EOF 2024-10-07 01:28:53 -07:00
david parsons 01aacfdf02 add 3 testcases for mkd_basename (-b flag in the markdown program) 2024-10-07 01:25:16 -07:00
david parsons c494e40d0a mkd_basename() was broken; the callback it uses did not check to see if the offending url started with a slash; also CHANGE MY NAME on the copyright notice for configure.inc 2024-10-07 01:14:28 -07:00
jessica parsons bf05eb5fb8 for some reason mkd_h1_title() was expecting a separate flags argument, but none of the prototypes defined it that way but still it compiled. Okay, that wasn't right 2024-10-03 20:02:33 -07:00
david parsons 827bedd96c further tweak the formatting for theme -V+ output 2024-09-08 15:53:52 -07:00
david parsons e98b949928 tweak the formatting for theme -V+ output 2024-09-08 15:52:31 -07:00
jessica parsons cc42e7ed69 I was calling show_flags() [tabular output] for theme -VV instead of mkd_flags_are() [streaming] 2024-09-08 15:16:03 -07:00
jessica parsons 4f2cd0c572 have theme check for THEME_OPTIONS to help set initial flags; when handling LaTeX, push back the second character if a $$ .. $$ match fails 2024-09-08 15:00:47 -07:00
jessica parsons 0fe8822395 don't allow zero-length tick sectons; don't pull a second character if mathhandler return false 2024-09-06 18:01:04 -07:00
jessica parsons 9bbb93b6f4 up to version 3.0.0e v3.0.0e 2024-09-05 15:14:11 -07:00
jessica parsons c454b323c9 add a test case for LaTeX single $ quotes 2024-09-05 15:13:17 -07:00
jessica parsons 44a834c74d in LaTeXspan (as in all the other tickhandlers) cursor(f) points one character into the enclosed span, so I need to cursor(f)-1 to point at the first character in the span 2024-09-05 14:53:41 -07:00
jessica parsons 0bef02c963 support LaTeX preprocessor single $ ... $ escapes 2024-09-04 00:14:31 -07:00
jessica parsons 5e2f73aec4 update my name to the current one 2024-03-29 23:41:29 -07:00
Orc 52c423f90a Merge pull request #285 from bobsayshilol/fix-xml-leak
Fix memory leak in mkd_xml()
2024-03-18 18:56:55 -07:00
bobsayshilol 87234b3caf Fix memory leak in mkd_xml()
The Cstring |f| wasn't being DELETE()d before returning from mkd_xml(),
leading to a leak every time it was called.
2024-03-17 22:00:10 +00:00
david parsons ff866f73d4 up to v3.0.0d v3.0.0d 2024-02-06 22:01:05 -08:00
david parsons 5396375eca it's not an email address if it starts with a '@' 2024-02-06 21:26:16 -08:00
Orc 03f5ed7478 I put the --container check (in the librarian maker) in the wrong place! 2024-02-06 20:57:15 -08:00
david parsons 737e7ee6fe add the --container config option so a ldconfig won't be installed into librarian.sh 2024-02-06 20:50:51 -08:00
david parsons 2eea56e23f add a test case for >%class1 class2% 2024-02-06 15:17:19 -08:00
david parsons 37b034fe98 allow multiple classes for >% blocks 2024-02-06 14:57:11 -08:00
david parsons 033f07110d replace an include of strings.h w string.h 2023-12-22 09:36:54 -08:00
david parsons 9939a3fa20 make tools/rep.c fancier by expanding backslash escapes; add a crash test for a #header line with a bucketload of trailing spaces 2023-12-14 17:25:52 -08:00
david parsons 95ca643137 fix a bug in tab expansion where I was lazy, assumed that T() strings would always be null-terminated, but didn't null terminate the resulting string after a tab expansion 2023-12-14 02:21:47 -08:00
david parsons 6cad28c817 left an argument out of main.c's memory deallocator callback 2023-12-13 21:54:17 -08:00
david parsons 976ad8682a up to version 3.0.0c 2023-12-13 21:42:13 -08:00
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