Commit Graph

  • abd97acee0 merge recursion-limit into main, up to verson 3.0.2.0 main v3.0.2.0 jessica parsons 2026-08-28 20:34:06 -07:00
  • 52db5cfdc9 add an explicit 'int' to the main declaration in 300.c; also add an exit(0) for whiny C compilers; lowercase the title in limits.t recursion-limit jessica parsons 2026-06-19 12:51:51 -07:00
  • 2ae87732d9 add code to do maximum recursion depth, and default it to 200 jessica parsons 2026-06-16 01:54:15 -07:00
  • e7da52abbf bump up the minor version# to 3.0.1.3 v3.0.1.3 jessica parsons 2026-06-09 12:44:21 -07:00
  • a55e87e63d add a 'section_break' flag into the line structure to keep the contents of adjacent blockquote chunks as separate blocks inside the blockquote jessica parsons 2026-06-09 12:07:54 -07:00
  • 39be61ef2c go back and tweak the effing fenced code disaster area so that it will break fenced code out into its own div and consume html & footnotes at the top level. jessica parsons 2026-05-31 14:12:03 -07:00
  • 24cfab4c61 in external_codefmt expand special characters into res, NOT src v2maint jessica parsons 2026-02-19 02:19:58 -08:00
  • d0c0c0dba1 cast external_codefmt to a mkd_callback_t because some newer gcc freak out when pointers are E-X-A-C-T-L-Y the same as the prototype v2.2.7e jessica parsons 2026-01-18 12:26:06 -08:00
  • 93007ed866 add a check for broken isspace() [broken == coredumps if the 8th bit is set] jessica parsons 2026-01-18 11:47:43 -08:00
  • ff09a191cd add a prototype for memset() because gcc/clang/whatever on macos ventura gets a sad when it doesn't see one jessica parsons 2025-09-11 12:58:45 -07:00
  • c214286f91 3.0.1.2 -- fix a host of string allocation bugs v3.0.1.2 jessica parsons 2025-09-08 09:51:18 -07:00
  • 63c7eb3d86 change amalloc so it fills malloc()ed memory with a nun-null pattern, which found a WHOLE BUNCH of places where I was not null-terminating strings but instead was taking advantage of amalloc always zeroing new allocations. jessica parsons 2025-09-08 09:50:17 -07:00
  • 985091d673 use calloc instead of malloc when initializing footnotes & flags jessica parsons 2025-09-08 09:31:16 -07:00
  • 41f71fe10f make it version 3.0.1.1 after some bugfixes v3.0.1.1 jessica parsons 2025-09-07 14:27:45 -07:00
  • 0ad136bdfb don't look for the destructor attribute now that I've moved the html5 tags data into the mmiot jessica parsons 2025-09-07 14:27:11 -07:00
  • 74551d84d8 ugh; forgot to null terminate foot->width & foot->height jessica parsons 2025-09-07 14:26:08 -07:00
  • eda57f596d forgot to null-terminate the extended attribute string in linky_extended_attributes jessica parsons 2025-09-06 11:55:29 -07:00
  • ed83925ecf up to version 3.0.1 (for publication) v3.0.1 jessica parsons 2025-09-03 18:20:49 -07:00
  • 7ea393a2c2 ugh; modified mkdio.h instead of mkdio.h.in jessica parsons 2025-09-03 17:54:26 -07:00
  • 8ddfb981ef redo the html5 flag option to make it a per-MMIOT thing, instead of being a global block that we have to deallocate when we're done; also take the opportunity to clean up mkd_initmmiot to have it set fags & html5 extraflags instead of duplicating that code in three places jessica parsons 2025-09-03 17:26:21 -07:00
  • 0bd7bfa773 move pgm_options.c into the discount library so I can publish mkd_set_flag_string() jessica parsons 2025-09-03 15:10:50 -07:00
  • 71bd0a7246 fix the manpage for mkd_line/mkd_generateline jessica parsons 2025-09-03 00:51:41 -07:00
  • f61b163f36 FINALLY start updating the documentation to the v3 published interface jessica parsons 2025-09-02 22:47:33 -07:00
  • 4b37a17f86 Merge netbsd11:Src/discount into main jessica parsons 2025-08-31 21:21:31 -07:00
  • 7b96468c13 add a check for broken isspace() (in netbsd11) Jessica L. Parsons 2025-08-31 21:19:59 -07:00
  • b49c306b6c update the cmake scaffolding (patch by christophe-calmejane on github) jessica parsons 2025-08-30 01:49:05 -07:00
  • 05d75492b9 update the cmake scaffolding (patch by christophe-calmejane on github) jessica parsons 2025-08-30 01:49:05 -07:00
  • 286f43f7d4 forgot to add a test case for linkylink extended attributes jessica parsons 2025-08-30 01:23:47 -07:00
  • 61c748f021 add support for extended attributes on [] & ![] links jessica parsons 2025-08-30 01:09:53 -07:00
  • 6ff6878cfd add support for % widths & heights for images (original implementation by mwfong-csl (on github); my implementation only because I couldn't figure out how to pull github patch requests into my master repository on pell) jessica parsons 2025-08-29 17:01:07 -07:00
  • ae3f28f5de fix the tests for expected output from markdown -b<prefix> jessica parsons 2024-10-07 01:33:09 -07:00
  • 5443e322c3 tweak the test for zero in __mkd_io_strget so if it's <=0 it's EOF jessica parsons 2024-10-07 01:28:53 -07:00
  • 01aacfdf02 add 3 testcases for mkd_basename (-b flag in the markdown program) david parsons 2024-10-07 01:25:16 -07:00
  • 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 david parsons 2024-10-07 01:14:28 -07:00
  • 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 jessica parsons 2024-10-03 20:02:33 -07:00
  • 827bedd96c further tweak the formatting for theme -V+ output david parsons 2024-09-08 15:53:52 -07:00
  • e98b949928 tweak the formatting for theme -V+ output david parsons 2024-09-08 15:52:31 -07:00
  • cc42e7ed69 I was calling show_flags() [tabular output] for theme -VV instead of mkd_flags_are() [streaming] jessica parsons 2024-09-08 15:16:03 -07:00
  • 4f2cd0c572 have theme check for THEME_OPTIONS to help set initial flags; when handling LaTeX, push back the second character if a $$ .. $$ match fails jessica parsons 2024-09-08 15:00:47 -07:00
  • 0fe8822395 don't allow zero-length tick sectons; don't pull a second character if mathhandler return false jessica parsons 2024-09-06 18:01:04 -07:00
  • 9bbb93b6f4 up to version 3.0.0e v3.0.0e jessica parsons 2024-09-05 15:14:11 -07:00
  • c454b323c9 add a test case for LaTeX single $ quotes jessica parsons 2024-09-05 15:13:17 -07:00
  • 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 jessica parsons 2024-09-05 14:53:41 -07:00
  • 0bef02c963 support LaTeX preprocessor single $ ... $ escapes jessica parsons 2024-09-04 00:14:31 -07:00
  • 5e2f73aec4 update my name to the current one jessica parsons 2024-03-29 23:41:29 -07:00
  • 52c423f90a Merge pull request #285 from bobsayshilol/fix-xml-leak Orc 2024-03-18 18:56:55 -07:00
  • 87234b3caf Fix memory leak in mkd_xml() bobsayshilol 2024-03-17 22:00:10 +00:00
  • ff866f73d4 up to v3.0.0d v3.0.0d david parsons 2024-02-06 22:01:05 -08:00
  • 5396375eca it's not an email address if it starts with a '@' david parsons 2024-02-06 21:26:16 -08:00
  • 03f5ed7478 I put the --container check (in the librarian maker) in the wrong place! Orc 2024-02-06 20:57:15 -08:00
  • 737e7ee6fe add the --container config option so a ldconfig won't be installed into librarian.sh david parsons 2024-02-06 20:50:51 -08:00
  • 2eea56e23f add a test case for >%class1 class2% david parsons 2024-02-06 15:17:19 -08:00
  • 37b034fe98 allow multiple classes for >% blocks david parsons 2024-02-06 14:57:11 -08:00
  • 033f07110d replace an include of strings.h w string.h david parsons 2023-12-22 09:36:54 -08:00
  • 9939a3fa20 make tools/rep.c fancier by expanding backslash escapes; add a crash test for a #header line with a bucketload of trailing spaces david parsons 2023-12-14 17:25:52 -08:00
  • 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 david parsons 2023-12-14 02:21:47 -08:00
  • 6cad28c817 left an argument out of main.c's memory deallocator callback david parsons 2023-12-13 21:54:17 -08:00
  • 976ad8682a up to version 3.0.0c david parsons 2023-12-13 21:42:13 -08:00
  • 90aeed07e3 update the callback creation functions to use the proper arguments david parsons 2023-12-13 21:40:29 -08:00
  • deca3b64b0 okay, the whole callback structure was a hot mess; change it so that every different callback has its own date & free function david parsons 2023-12-13 21:31:04 -08:00
  • 2e2ddad4db set the version to 3.0.0b david parsons 2023-12-11 19:50:46 -08:00
  • 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 david parsons 2023-12-11 19:42:37 -08:00
  • 133d55475e update to version 2.2.7d v2.2.7d david parsons 2023-08-23 01:09:27 -07:00
  • 452bf325a4 port the m-e footnote bugfix to v2maint david parsons 2023-08-13 19:54:21 -07:00
  • a096c1a3aa fix some brokenness in markdown extra footnotes that made adjacent footnotes not render properly david parsons 2023-08-13 19:54:21 -07:00
  • faa5150346 add the new runtime flag ALT_AS_TITLE; if an image has no title, use the alt text as the title david parsons 2023-02-21 11:03:12 -08:00
  • 5d13c2828d add config.sed to the list of config files (to avoid HILARIOUS errors if I simply rsync a discount to a different machine david parsons 2023-01-26 18:17:11 -08:00
  • 34d18df915 up to v 3.0.0a v3.0.0a david parsons 2022-10-27 11:35:18 -07:00
  • 262c7c7dba fix code indentation in a test program in configure; tweak title generation in xmlpage to stop gcc & clang from complaining about dangling elses david parsons 2022-10-27 11:18:33 -07:00
  • 7afa5c6242 Make C99 clean David Seifert 2022-10-27 19:23:22 +02:00
  • e451aac683 add a new testcase to verify that -> ... <- works properly david parsons 2022-10-22 20:33:57 -07:00
  • ef25172009 start tweaking in preprocessor support; start with a rough m4 framework david parsons 2022-10-22 20:33:17 -07:00
  • 4a73e7f7d6 have all of the extensions code guarded by checking against MKD_STRICT david parsons 2022-10-05 12:22:28 -07:00
  • 37b22a997e match the descriptions for MKD_STRICT in mkdio.h.in & markdown.h david parsons 2022-10-04 12:27:16 -07:00
  • 583969803f hunt down and remove all references to the NORELAXED flag (now STRICT) david parsons 2022-10-04 12:22:55 -07:00
  • 2206091f80 add a fistful of test cases for the new! improved! Markdown.pl compatible <tags> david parsons 2022-10-03 19:39:59 -07:00
  • 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) david parsons 2022-10-03 01:00:47 -07:00
  • e12437122a rolling in the v2.2.7c fix to tag behavior patch david parsons 2022-10-04 12:07:49 -07:00
  • 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 david parsons 2022-10-02 14:07:23 -07:00
  • 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 :-( david parsons 2022-10-02 02:46:26 -07:00
  • c03c0ca03e trivialities; change the -fstrict option description v2.2.7c david parsons 2022-10-04 10:28:08 -07:00
  • 9d8b6838f2 add a fistful of test cases for the new! improved! Markdown.pl compatible <tags> david parsons 2022-10-03 19:39:59 -07:00
  • 65f5c46ea1 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) david parsons 2022-10-03 01:00:47 -07:00
  • 1f6ad68918 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 david parsons 2022-10-02 14:07:23 -07:00
  • 18956b558f 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 :-( david parsons 2022-10-02 02:46:26 -07:00
  • 10c99d3a64 left out <sys/wait.h> david parsons 2022-08-02 09:45:17 -07:00
  • 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 david parsons 2022-08-02 09:34:31 -07:00
  • 5b6e5b0e07 change the external code block formatting option into an actual external code block formatter david parsons 2022-08-01 13:41:33 -07:00
  • 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 david parsons 2022-07-31 23:34:13 -07:00
  • 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 david parsons 2022-07-30 23:29:36 -07:00
  • 6c015711e0 change fenced code behavior to not have a leading newline before the first line within the fence david parsons 2022-07-30 23:20:20 -07:00
  • 89f1dfdef7 more tweaking; when I include $(MKDLIB) as a dependency for an exerciser test, $< disappears when compiling on netbsd8? david parsons 2022-07-20 17:13:14 -07:00
  • 380229266f don't forget to set up LD_LIBRARY_PATH when running the exerciser tests david parsons 2022-07-30 07:50:08 -07:00
  • 6e03172bea tweak the makefiles to ensure that libmarkdown (a synthetic target) is make before any of the executables are assembled during a parallel make david parsons 2022-07-30 14:39:42 +00:00
  • 25f24b5bf4 rework how flags are initialized & configured for <?theme commands david parsons 2022-07-29 23:59:48 -07:00
  • 436a0c033e change from submakes to included makefiles david parsons 2022-06-22 13:43:51 -07:00
  • 4cdcac0d90 by request change the document type from html 4.0 to whatever the current version of html is (currently 5) david parsons 2022-06-19 17:47:30 -07:00
  • 63f542f34d silence the commands to make the exerciser programs david parsons 2022-06-18 09:08:48 -07:00
  • b81982c8a7 didn't catch one of the -C's in the exerciser makes? david parsons 2022-06-18 08:56:18 -07:00
  • 487c07f4cf working around the embedded gnuism is harder that I thought david parsons 2022-06-18 02:29:03 -07:00