Commit Graph
1046 Commits
Author SHA1 Message Date
Yuri Chornoivan 38282592fc Fix minor typos 2020-05-01 19:58:40 +03:00
david parsons c4b97d6cf7 use mkd_free_flags() in all the demo programs 2020-04-08 12:26:13 -07:00
david parsons e3042eb904 add a free_flags() function to complement the flag blob maker 2020-04-08 11:46:26 -07:00
david parsons e42188e6c4 didn't include $(MKDLIB) as a requirement for pandoc headers, leading to hilarity when I did a make -j 2020-04-08 01:24:14 -07:00
david parsons 29fd434453 restructure the dd accumulator in definition_block() so that the goto isn't *quite* so horribly an abuse of block structure 2020-04-08 01:21:56 -07:00
david parsons 53965d67c8 add a testcase for empty ## 2020-03-28 23:21:58 -07:00
david parsons 1003923bca fix a malloc overflow when doing mkd_anchor_format() 2020-03-28 23:14:23 -07:00
david parsons 2e900346a0 make the published mkd_flag_t opaque and add a new function (mkd_flags()) to generate a flag structure and return it in malloced memory 2020-03-07 19:56:22 -08:00
david parsons 12e8c9c715 messed up the number of bits in a byte? 2020-01-26 12:45:48 -08:00
david parsons 5a59d221aa document mkd_e_code() 2020-01-24 09:16:58 -08:00
David Parsons d9d6d43685 Merge pull request #218 from nicolasfella/cmakefix
[cmake] Don't try to install markdown when building lib only
2019-12-30 16:29:53 -08:00
Nicolas Fella 196e858cee Don't try to install markdown when building lib only 2019-12-31 01:14:49 +01:00
david parsons 61b336fd28 have v2compat convert from the 2.2.6 flags, not the flags that live in the limbo between 2.2.6 and v3 2019-12-18 10:17:41 -08:00
david parsons dfb7e00281 start gluing up a v2 compatability layer 2019-12-15 21:08:36 -08:00
david parsons 74a3544bf5 fix up theme default settings in configure.sh 2019-12-10 22:40:50 -08:00
david parsons 43c5c0496b fix up theme default settings 2019-12-10 22:37:51 -08:00
david parsons e677e83165 update the header verification program so it works with the new flag format; cosmetically tweak mkdio.h.in & markdown.h to make it easier to automatically diff the two enums 2019-12-10 09:24:46 -08:00
david parsons c5ea5bbadf redo the mkd_flag_t set functions to more closely fit how I'm using them and to have more descriptive names 2019-12-08 09:39:23 -08:00
david parsons 9d1b68af38 do more checking for null pointer flags in the published interface 2019-12-08 08:47:09 -08:00
david parsons eb3cea8983 more cleanup of null pointer dereference crashes during pandoc header processing 2019-10-29 18:41:45 -07:00
david parsons fd801c6951 don't COPY_FLAGS null flags; just initialize to 0s 2019-12-08 08:16:22 -08:00
david parsons b9e867b574 redo the whole flags dealie as an opaque blob 2019-12-07 22:49:52 -08:00
david parsons d74c180a8c Merge github.com:Orc/discount into v3 2019-07-30 13:56:32 -07:00
David Parsons 1814a5d4b7 Merge pull request #212 from podsvirov/cmake-cxx-binding
Add cmake option DISCOUNT_CXX_BINDING
2019-07-30 13:55:01 -07:00
Konstantin Podsvirov 693f318eeb Add cmake option DISCOUNT_CXX_BINDING
This cmake option add behavior similar to:
./configure.sh --cxx-binding
2019-07-30 20:57:40 +03:00
david parsons aeadbe2549 Pull in patches for msvc & plan9 builds 2019-06-15 16:30:27 -07:00
David Parsons 83faef680a Merge pull request #210 from preshing/master
Fix CMake & MSVC builds
2019-06-15 16:25:46 -07:00
David Parsons 56ba103371 Merge pull request #200 from mischief/plan9mkfile
Plan9/mkfile: fix dependencies and virtual targets, add uninstall
2019-06-15 16:23:50 -07:00
Jeff Preshing acd7ce51e9 Fix CMake & MSVC builds 2019-06-12 20:10:18 -04:00
david parsons 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 2019-04-15 08:28:20 -07:00
david parsons 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) 2019-04-15 08:24:53 -07:00
david parsons 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 2019-04-15 07:15:35 -07: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 2be654fdeb mkd2html wasn't passing pgm to hoptusage() 2019-04-12 11:47:08 -07:00
david parsons 5bf1c6cfae add an external code block formatter to the markdown program 2019-04-12 08:25:02 -07:00
david parsons 866e9aaccb support external code formatters 2019-04-10 11:59:04 -07:00
david parsons 0d33c8fe0d tweak how scalar headers are include in .in files 2019-02-27 12:10:35 -08:00
david parsons 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 2019-02-27 11:56:21 -08:00
david parsons 647e65069e when dumping the parse tree, say which header is being dumped -- h1..h6 vs just header 2019-02-23 00:35:16 -08:00
david parsons 3d63e86076 add some dle sanity checking into onlyifset() 2019-02-22 13:27:02 -08:00
david parsons 1f90fde27f add an anchor format callback, plus add the -x option to the markdown program to squash toc anchors to (close to) github compatability 2019-02-18 20:54:05 -08:00
david parsons 805cc0eae1 don't publish mkd_string_to_anchor 2019-02-15 16:31:57 -08:00
david parsons e46dc76b25 prep 2.2.6 2019-02-12 07:47:28 -08: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 50c628197f yank the repeated inline uncaches out and stuff them into a local function 2019-02-10 09:51:56 -08:00
david parsons 5577a536b4 deal with cached text before handling fenced code blocks 2019-02-10 09:47:10 -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 502ec35ae2 don't give a code block class if it's just an empty string 2019-01-30 21:50:15 -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 v2.2.5 2019-01-29 17:46:10 -08:00