Commit Graph

  • 693f318eeb Add cmake option DISCOUNT_CXX_BINDING Konstantin Podsvirov 2019-07-30 20:57:40 +03:00
  • aeadbe2549 Pull in patches for msvc & plan9 builds david parsons 2019-06-15 16:30:27 -07:00
  • 83faef680a Merge pull request #210 from preshing/master David Parsons 2019-06-15 16:25:46 -07:00
  • 56ba103371 Merge pull request #200 from mischief/plan9mkfile David Parsons 2019-06-15 16:23:50 -07:00
  • acd7ce51e9 Fix CMake & MSVC builds Jeff Preshing 2019-06-12 20:10:18 -04:00
  • 4b67316d6e mkd2html wasn't properly handling two arguments for input & output files. While I was at it, add the -G option to use gfm_in() to read the input file in (and preserve newlines) v2.2.6 david parsons 2019-04-15 08:24:53 -07:00
  • 5a4f0170ca mkd2html wasn't properly handling two arguments for input & output files. While I was at it, add the -G option to use gfm_in() to read the input file in (and preserve newlines) david parsons 2019-04-15 08:24:53 -07:00
  • 1bec1a0ef2 since github checkboxes are configured to be input objects by default, don't have a bare --github-checkbox non-intuitively set them to html entities david parsons 2019-04-15 07:15:35 -07:00
  • 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 david parsons 2019-04-14 20:56:55 -07:00
  • 2be654fdeb mkd2html wasn't passing pgm to hoptusage() david parsons 2019-04-12 11:47:08 -07:00
  • 5bf1c6cfae add an external code block formatter to the markdown program david parsons 2019-04-12 08:25:02 -07:00
  • 866e9aaccb support external code formatters david parsons 2019-04-10 11:59:04 -07:00
  • 0d33c8fe0d tweak how scalar headers are include in .in files david parsons 2019-02-27 12:10:35 -08:00
  • ee2b955fd6 tweak configure to (a) use the modern standard uintXX_t types for DWORD, WORD, BYTE if possible and (b) if a program is defined via an environment variable (like CC) try to use that variable instead of doing a path search in AC_PROG david parsons 2019-02-27 11:56:21 -08:00
  • 647e65069e when dumping the parse tree, say which header is being dumped -- h1..h6 vs just header david parsons 2019-02-23 00:35:16 -08:00
  • 3d63e86076 add some dle sanity checking into onlyifset() david parsons 2019-02-22 13:27:02 -08:00
  • 1f90fde27f add an anchor format callback, plus add the -x option to the markdown program to squash toc anchors to (close to) github compatability david parsons 2019-02-18 20:54:05 -08:00
  • 805cc0eae1 don't publish mkd_string_to_anchor david parsons 2019-02-15 16:31:57 -08:00
  • e46dc76b25 prep 2.2.6 david parsons 2019-02-12 07:47:28 -08:00
  • 18b65b162c add two more tests (unfinished fenced code block, paragraph then fenced code block) to codeblock.t david parsons 2019-02-10 10:05:34 -08:00
  • 50c628197f yank the repeated inline uncaches out and stuff them into a local function david parsons 2019-02-10 09:51:56 -08:00
  • 5577a536b4 deal with cached text before handling fenced code blocks david parsons 2019-02-10 09:47:10 -08:00
  • 8cc83f10c2 add a test case for a piece of fenced code with trailing spaces after the opening ~~~ david parsons 2019-01-31 05:47:19 -08:00
  • 502ec35ae2 don't give a code block class if it's just an empty string david parsons 2019-01-30 21:50:15 -08:00
  • e02f8005ee add a fenced code block with embedded html david parsons 2019-01-29 21:39:17 -08:00
  • 4fba9d82a9 push the fencedcode block handler up to the toplevel scanner so it will handle blank lines inside the fence v2.2.5 david parsons 2019-01-29 17:46:10 -08:00
  • 0f2e9d44f9 Plan9/mkfile: fix dependencies and virtual targets, add uninstall mischief 2018-10-23 04:53:12 -07:00
  • 073c7af868 patch the cmakefile so that has an option to only generate a library david parsons 2018-10-07 10:07:41 -07:00
  • f46d425c2f add a list item for testing the build david parsons 2018-10-06 15:13:02 -07:00
  • 1222dece76 tweak the Makefile macros a bit so people can wedge in their own compilers (BUILD) and linkers (LINK) during a build david parsons 2018-09-19 12:09:38 -07:00
  • 311b33218f set the Plan9 CFLAGS to the two extensions (instead of having them be part of the CC macro) and wipe out any CFLAGS (like -T, which tells the Plan9 posix C compiler to be stupid) that already exists david parsons 2018-09-19 08:14:37 -07:00
  • 839ba61428 when checking that the C compiler works, compile the test program as two modules with a function declared with differing pointer types (char ptr vs void ptr) so if the C compiler generates type signatures and doesn't think a void pointer is the universal solvent it will fail right there david parsons 2018-09-18 12:36:06 -07:00
  • 0308244ec8 shuffle around some of the definitions to make everything happily(?) compile with all instances of flags being mkd_flag_t david parsons 2018-09-18 08:32:03 -07:00
  • 7fdc188f07 clean up all references to flags; define them EVERYWHERE as mkd_flag_t david parsons 2018-09-18 08:25:27 -07:00
  • cf74d6d218 make all instances of 'main()' be integer functions (sigh) david parsons 2018-09-16 14:41:42 -07:00
  • a6bcdd1ce5 include config.h before any other headers david parsons 2018-09-14 20:20:00 -07:00
  • f555d4c1c4 fix all places where I pass flags to be DWORDs david parsons 2018-09-14 20:18:17 -07:00
  • 798fdfb14c if a makefile is detected during configuration, do a rm -f markdown echo cols branch pandoc_headers mkd2html makepage theme *.o rm -f libmarkdown ./librarian.sh files libmarkdown VERSION rm -f Makefile version.c mkdio.h config.cmd config.sub config.h config.mak config.md librarian.sh config.log ./mktags ./blocktags with it before doing the new configuration david parsons 2018-09-14 13:33:51 -07:00
  • 36615e6b15 have peek() return an int instead of an unsigned int (netbsd 8; ctype functions explode with unsigned int arguments?) david parsons 2018-09-14 12:18:45 -07:00
  • 11c757d70b move flags.o down to the last line in OBJS= to work around a plan9 makefile bug david parsons 2018-09-12 08:57:02 -07:00
  • 78db45cc5f gonna be 2.2.5 pretty soon david parsons 2018-09-12 08:21:12 -07:00
  • 20d03a3de7 messed up the definition for missing attributes; should be /**/ instead of '', because AC_DEFINE will convert an empty string into a 1 david parsons 2018-09-12 08:14:58 -07:00
  • c4c753da12 add in a handful of test to verify that empty pandoc headers are not auto-populated with % david parsons 2018-09-07 15:41:40 -07:00
  • 06ac2cc08f if __mkd_trim_line trims the entire line, manually set the string to \0 david parsons 2018-09-07 15:10:29 -07:00
  • 0e587c4afb make a test program to examine pandoc header elements david parsons 2018-09-06 21:46:36 -07:00
  • 1baeb2dbd3 Version 2.2.4; also when doing github checkbox as input form disable each checkbox v2.2.4 david parsons 2018-08-05 13:39:32 -07:00
  • 0d01a2c9c0 to b3 david parsons 2018-06-16 11:51:57 -07:00
  • 16e47523e0 whoops, misspelled Aaron's last name david parsons 2018-06-03 21:05:28 -07:00
  • 2324a09ac6 Add Aaron Schwartz (RIP) to the original author credit david parsons 2018-06-03 21:03:53 -07:00
  • 79e230a0ef Merge https://github.com/Crypto-Anarchist/discount (strike HGROUP from the list of html5 tags) david parsons 2018-06-03 20:58:24 -07:00
  • 60539e2af3 add a testcase for indented last line in html block with trailing text david parsons 2018-05-26 18:59:18 -07:00
  • b002a5a4db when splitting a line, null terminate the new line; also don't inherit the dle from the previous line david parsons 2018-05-26 13:57:35 -07:00
  • f80d60b89e in __mkd_trim_line, shortcut a complete line clip by simply setting S() and dle to zero david parsons 2018-05-23 10:21:52 -07:00
  • d5570f756d in configure.sh, --github-checkbox=input enables github checkboxes using <input checkbox> like github uses david parsons 2018-04-20 12:01:25 -07:00
  • 74914a7981 #ifdef the github checkbox generator; if CHECKBOX_AS_INPUT is defined, use a <input checkbox>, otherwise use ballot box entities david parsons 2018-04-19 19:08:33 -07:00
  • 8a6c276718 add the option --github-checkbox to configure.sh (to enable github checkboxes) david parsons 2018-04-19 18:54:14 -07:00
  • e5f58dcebc pull the htmlify paragraph loop out of htmlify() and it_htmlify() so that it won't want to drift out of sync david parsons 2018-04-19 03:32:47 -07:00
  • 2578c37ff3 clean up some of the kludgery david parsons 2018-04-19 03:22:51 -07:00
  • f533bdb512 be more github-alike; use an '<input>' checkbox instead of html entities david parsons 2018-04-18 09:09:02 -07:00
  • faad80e95a check for [x] & [X] david parsons 2018-04-17 21:07:39 -07:00
  • a12d7d7294 take a pass at github checklist items david parsons 2018-04-17 18:09:33 -07:00
  • f984d33ba6 Delete HGROUP Crypto-Anarchist 2018-04-15 22:21:59 +00:00
  • 51958b09a0 ...b2; testing shared library destructors david parsons 2018-03-18 13:04:03 -07:00
  • e9bcf76b1f on systems that support it, use the 'destructor' attribute on mkd_shlib_destructor() so it will run automatically david parsons 2018-03-17 21:01:22 -07:00
  • a3739d3901 add --cxx-binding option to configure.sh to generate a mkdio.h that's got a extern "C" wrapper around it david parsons 2018-03-17 19:35:45 -07:00
  • 5701d743c5 strip out a nextblank loop in favor of a call to nextblank david parsons 2018-03-14 21:04:56 -07:00
  • ddf8b6f0d4 merge extra_footnotes into the baseline; up to v2.2.4b1 david parsons 2018-03-12 12:24:20 -07:00
  • 7352ac2178 add a README for the tests/data directory david parsons 2018-03-10 14:05:26 -08:00
  • f8fa8c05c0 add a test for m-e footnotes containing multiple paragraphs of different markdown stuff david parsons 2018-03-10 11:18:51 -08:00
  • b73576c20e generalize __mkd_header_dle() into __mkd_trim_line() [trim N characters off the front of a line, adjust the dle] then use it instead of the pair CLIP/firstnonblank to trim & adjust dle david parsons 2018-03-10 10:33:57 -08:00
  • e739de7c92 remove the one_extra_footnote() function now that I've stripped the innards out of it david parsons 2018-03-09 22:22:13 -08:00
  • 74689abf23 update the markdown extra footnote tests for the new format david parsons 2018-03-09 22:19:05 -08:00
  • 6ac7f5ccf3 implement the m-e behavior of allowing full markdown inside m-e footnotes david parsons 2018-03-09 21:15:49 -08:00
  • 6e95a936d7 move the code to gather up the lines in a m-e footnote into its own subroutine david parsons 2018-03-09 18:55:16 -08:00
  • bae756a55f Merge orc@gehenna:Src/discount into extra_footnotes david parsons 2018-03-09 06:29:34 -08:00
  • d506c70147 Merge pull request #186 from apg/bugfix-missing-t-option David Parsons 2018-03-09 06:16:30 -08:00
  • b8eccaf7a7 Add missing -t flag for template file handling. Andrew Gwozdziewycz 2018-03-09 00:31:59 -08:00
  • fd48cc7885 tweak m-e footnotes to do blocks of text david parsons 2018-03-08 12:11:39 -08:00
  • 73aacdc079 didn't set VERSION to 2.2.3a david parsons 2018-03-05 14:49:01 -08:00
  • 9e9d515873 use __remove to remove the executables after the S_ISxxx tests so it will clean up macos .dSYM poop v2.2.3a david parsons 2018-03-02 14:52:05 -08:00
  • db2c852ec1 some fluff for detecting memset; try first with string.h david parsons 2018-02-28 14:25:45 -08:00
  • 840ab93e28 when checking for the various S_IS... macros, build an executable so if the macros don't exist they'll be treated as externals to get caught during linking david parsons 2018-02-28 14:18:45 -08:00
  • 61d5703bfd change the variable name for the output file to output_file (to avoid confusion with all of the functions that use output as a output file descriptor variable) and use malloc instead of alloca to allocate it (possible ms-windows defect with how alloca works?) david parsons 2018-02-28 11:56:49 -08:00
  • 67786b3e27 always use memset instead of bzero david parsons 2018-02-28 09:44:40 -08:00
  • 35aa1494b3 typoed the #if for notspecial; did a couple check for HAS_ISSOCK instead of HAS_ISFIFO && HAS_ISSOCK v2.2.3 david parsons 2018-02-27 09:33:59 -08:00
  • 29dfd6c346 push up to 2.2.3 david parsons 2018-02-27 09:30:54 -08:00
  • 5abb66abb7 check for git & have branch be a no-op if it doesn't exist on this system david parsons 2018-02-27 09:26:57 -08:00
  • 6fd16317fd check for the existance of S_ISSOCK, S_ISCHR, and S_ISFIFO before trying to use them in notspecial.c david parsons 2018-02-27 09:08:07 -08:00
  • 80e1ad5018 Merge pull request #180 from podsvirov/cmake David Parsons 2017-12-14 12:25:34 -08:00
  • a529b4b89e Improve CMake project Konstantin Podsvirov 2017-12-13 21:30:12 +03:00
  • ab3b26466d Merge pull request #179 from podsvirov/cmake David Parsons 2017-12-09 20:40:08 -08:00
  • adf7d78447 Add forgoten file for #177 Konstantin Podsvirov 2017-12-10 07:32:15 +03:00
  • 6aae35bca3 Merge pull request #177 from podsvirov/cmake David Parsons 2017-12-09 20:24:05 -08:00
  • 5cf4b6c12c Add CMake install rules Konstantin Podsvirov 2017-12-10 07:10:55 +03:00
  • 10c131d99e Merge pull request #176 from podsvirov/cmake David Parsons 2017-12-08 16:38:58 -08:00
  • 1d6e8bfff5 Move CMake files to subdirectory Konstantin Podsvirov 2017-12-08 21:14:55 +03:00
  • 82f64823a4 Add CMake project Konstantin Podsvirov 2017-12-07 22:45:05 +03:00
  • aa2f34f0bc check for non-null T(link) in the safelink function; rename paranoia.t to safelink.t, add a couple more tests for safelinks david parsons 2017-11-23 04:44:24 +00:00
  • 59044a5001 tweak the safelink detection code to allow more types of url fragments david parsons 2017-11-22 20:23:34 -08:00
  • 7e06a233d6 left the mode out after the -m when testing 'install -s' david parsons 2017-11-15 16:35:09 -08:00