Commit Graph
1185 Commits
Author SHA1 Message Date
jessica parsons 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 2025-09-03 17:26:21 -07:00
jessica parsons 0bd7bfa773 move pgm_options.c into the discount library so I can publish mkd_set_flag_string() 2025-09-03 15:10:50 -07:00
jessica parsons 71bd0a7246 fix the manpage for mkd_line/mkd_generateline 2025-09-03 00:51:41 -07:00
jessica parsons f61b163f36 FINALLY start updating the documentation to the v3 published interface 2025-09-02 22:47:41 -07:00
jessica parsons 4b37a17f86 Merge netbsd11:Src/discount into main 2025-08-31 21:21:31 -07:00
Jessica L. Parsons 7b96468c13 add a check for broken isspace() (in netbsd11) 2025-08-31 21:19:59 -07:00
jessica parsons b49c306b6c update the cmake scaffolding (patch by christophe-calmejane on github) 2025-08-31 21:19:52 -07:00
jessica parsons 05d75492b9 update the cmake scaffolding (patch by christophe-calmejane on github) 2025-08-30 01:49:05 -07:00
jessica parsons 286f43f7d4 forgot to add a test case for linkylink extended attributes 2025-08-30 01:23:47 -07:00
jessica parsons 61c748f021 add support for extended attributes on [] & ![] links 2025-08-30 01:09:53 -07:00
jessica parsons 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) 2025-08-29 17:01:07 -07:00
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