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
|
aeadbe2549
|
Pull in patches for msvc & plan9 builds
|
2019-06-15 16:30:27 -07: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)
|
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
|
2019-01-29 17:46:10 -08:00 |
|
david parsons
|
073c7af868
|
patch the cmakefile so that has an option to only generate a library
|
2018-10-07 10:07:41 -07:00 |
|
david parsons
|
f46d425c2f
|
add a list item for testing the build
|
2018-10-06 15:13:02 -07:00 |
|
david parsons
|
1222dece76
|
tweak the Makefile macros a bit so people can wedge in their own compilers (BUILD) and linkers (LINK) during a build
|
2018-09-19 12:09:38 -07:00 |
|
david parsons
|
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
|
2018-09-19 08:14:37 -07:00 |
|
david parsons
|
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
|
2018-09-18 12:36:06 -07:00 |
|
david parsons
|
0308244ec8
|
shuffle around some of the definitions to make everything happily(?) compile with all instances of flags being mkd_flag_t
|
2018-09-18 08:32:03 -07:00 |
|
david parsons
|
7fdc188f07
|
clean up all references to flags; define them EVERYWHERE as mkd_flag_t
|
2018-09-18 08:25:27 -07:00 |
|
david parsons
|
cf74d6d218
|
make all instances of 'main()' be integer functions (sigh)
|
2018-09-16 14:41:42 -07:00 |
|
david parsons
|
a6bcdd1ce5
|
include config.h before any other headers
|
2018-09-14 20:20:00 -07:00 |
|
david parsons
|
f555d4c1c4
|
fix all places where I pass flags to be DWORDs
|
2018-09-14 20:18:17 -07:00 |
|
david parsons
|
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
|
2018-09-14 13:33:51 -07:00 |
|
david parsons
|
36615e6b15
|
have peek() return an int instead of an unsigned int (netbsd 8; ctype functions explode with unsigned int arguments?)
|
2018-09-14 12:18:45 -07:00 |
|
david parsons
|
11c757d70b
|
move flags.o down to the last line in OBJS= to work around a plan9 makefile bug
|
2018-09-12 08:57:02 -07:00 |
|
david parsons
|
78db45cc5f
|
gonna be 2.2.5 pretty soon
|
2018-09-12 08:21:12 -07:00 |
|
david parsons
|
20d03a3de7
|
messed up the definition for missing attributes; should be /**/ instead of '', because AC_DEFINE will convert an empty string into a 1
|
2018-09-12 08:14:58 -07:00 |
|
david parsons
|
c4c753da12
|
add in a handful of test to verify that empty pandoc headers are not auto-populated with %
|
2018-09-07 15:41:40 -07:00 |
|
david parsons
|
06ac2cc08f
|
if __mkd_trim_line trims the entire line, manually set the string to \0
|
2018-09-07 15:10:29 -07:00 |
|
david parsons
|
0e587c4afb
|
make a test program to examine pandoc header elements
|
2018-09-06 21:46:36 -07:00 |
|
david parsons
|
1baeb2dbd3
|
Version 2.2.4; also when doing github checkbox as input form disable each checkbox
|
2018-08-05 13:39:32 -07:00 |
|
david parsons
|
0d01a2c9c0
|
to b3
|
2018-06-16 11:51:57 -07:00 |
|
david parsons
|
16e47523e0
|
whoops, misspelled Aaron's last name
|
2018-06-03 21:05:28 -07:00 |
|
david parsons
|
2324a09ac6
|
Add Aaron Schwartz (RIP) to the original author credit
|
2018-06-03 21:03:53 -07:00 |
|
david parsons
|
79e230a0ef
|
Merge https://github.com/Crypto-Anarchist/discount (strike HGROUP from
the list of html5 tags)
|
2018-06-03 20:58:24 -07:00 |
|
david parsons
|
60539e2af3
|
add a testcase for indented last line in html block with trailing text
|
2018-05-26 18:59:18 -07:00 |
|
david parsons
|
b002a5a4db
|
when splitting a line, null terminate the new line; also don't inherit the dle from the previous line
|
2018-05-26 13:57:35 -07:00 |
|
david parsons
|
f80d60b89e
|
in __mkd_trim_line, shortcut a complete line clip by simply setting S() and dle to zero
|
2018-05-23 10:21:52 -07:00 |
|
david parsons
|
d5570f756d
|
in configure.sh, --github-checkbox=input enables github checkboxes using <input checkbox> like github uses
|
2018-04-20 12:01:25 -07:00 |
|
david parsons
|
74914a7981
|
#ifdef the github checkbox generator; if CHECKBOX_AS_INPUT is defined, use a <input checkbox>, otherwise use ballot box entities
|
2018-04-19 19:08:33 -07:00 |
|
david parsons
|
8a6c276718
|
add the option --github-checkbox to configure.sh (to enable github checkboxes)
|
2018-04-19 18:54:14 -07:00 |
|
david parsons
|
e5f58dcebc
|
pull the htmlify paragraph loop out of htmlify() and it_htmlify() so that it won't want to drift out of sync
|
2018-04-19 03:32:47 -07:00 |
|
david parsons
|
2578c37ff3
|
clean up some of the kludgery
|
2018-04-19 03:22:51 -07:00 |
|
david parsons
|
f533bdb512
|
be more github-alike; use an '<input>' checkbox instead of html entities
|
2018-04-18 09:09:02 -07:00 |
|
david parsons
|
faad80e95a
|
check for [x] & [X]
|
2018-04-17 21:07:39 -07:00 |
|
david parsons
|
a12d7d7294
|
take a pass at github checklist items
|
2018-04-17 18:09:33 -07:00 |
|
david parsons
|
51958b09a0
|
...b2; testing shared library destructors
|
2018-03-18 13:04:03 -07:00 |
|
david parsons
|
e9bcf76b1f
|
on systems that support it, use the 'destructor' attribute on mkd_shlib_destructor() so it will run automatically
|
2018-03-17 21:01:22 -07:00 |
|
david parsons
|
a3739d3901
|
add --cxx-binding option to configure.sh to generate a mkdio.h that's got a extern "C" wrapper around it
|
2018-03-17 19:35:45 -07:00 |
|
david parsons
|
5701d743c5
|
strip out a nextblank loop in favor of a call to nextblank
|
2018-03-14 21:04:56 -07:00 |
|
david parsons
|
ddf8b6f0d4
|
merge extra_footnotes into the baseline; up to v2.2.4b1
|
2018-03-12 12:24:20 -07:00 |
|
david parsons
|
7352ac2178
|
add a README for the tests/data directory
|
2018-03-10 14:05:26 -08:00 |
|
david parsons
|
f8fa8c05c0
|
add a test for m-e footnotes containing multiple paragraphs of different markdown stuff
|
2018-03-10 11:18:51 -08:00 |
|
david parsons
|
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
|
2018-03-10 10:33:57 -08:00 |
|
david parsons
|
e739de7c92
|
remove the one_extra_footnote() function now that I've stripped the innards out of it
|
2018-03-09 22:22:13 -08:00 |
|
david parsons
|
74689abf23
|
update the markdown extra footnote tests for the new format
|
2018-03-09 22:19:05 -08:00 |
|
david parsons
|
6ac7f5ccf3
|
implement the m-e behavior of allowing full markdown inside m-e footnotes
|
2018-03-09 21:15:49 -08:00 |
|
david parsons
|
6e95a936d7
|
move the code to gather up the lines in a m-e footnote into its own subroutine
|
2018-03-09 18:55:16 -08:00 |
|
david parsons
|
bae756a55f
|
Merge orc@gehenna:Src/discount into extra_footnotes
|
2018-03-09 06:29:34 -08:00 |
|
david parsons
|
fd48cc7885
|
tweak m-e footnotes to do blocks of text
|
2018-03-08 12:11:39 -08:00 |
|
david parsons
|
73aacdc079
|
didn't set VERSION to 2.2.3a
|
2018-03-05 14:49:01 -08:00 |
|
david parsons
|
9e9d515873
|
use __remove to remove the executables after the S_ISxxx tests so it will clean up macos .dSYM poop
|
2018-03-02 14:52:05 -08:00 |
|
david parsons
|
db2c852ec1
|
some fluff for detecting memset; try first with string.h
|
2018-02-28 14:25:45 -08:00 |
|
david parsons
|
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
|
2018-02-28 14:18:45 -08:00 |
|
david parsons
|
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?)
|
2018-02-28 11:56:49 -08:00 |
|
david parsons
|
67786b3e27
|
always use memset instead of bzero
|
2018-02-28 09:44:40 -08:00 |
|
david parsons
|
35aa1494b3
|
typoed the #if for notspecial; did a couple check for HAS_ISSOCK instead of HAS_ISFIFO && HAS_ISSOCK
|
2018-02-27 09:33:59 -08:00 |
|
david parsons
|
29dfd6c346
|
push up to 2.2.3
|
2018-02-27 09:30:54 -08:00 |
|
david parsons
|
5abb66abb7
|
check for git & have branch be a no-op if it doesn't exist on this system
|
2018-02-27 09:26:57 -08:00 |
|
david parsons
|
6fd16317fd
|
check for the existance of S_ISSOCK, S_ISCHR, and S_ISFIFO before trying to use them in notspecial.c
|
2018-02-27 09:08:07 -08:00 |
|
david parsons
|
aa2f34f0bc
|
check for non-null T(link) in the safelink function; rename paranoia.t to safelink.t, add a couple more tests for safelinks
|
2017-11-23 04:44:24 +00:00 |
|
david parsons
|
59044a5001
|
tweak the safelink detection code to allow more types of url fragments
|
2017-11-22 20:23:34 -08:00 |
|
david parsons
|
88913580f1
|
when finding the installer, check that -s works (doesn't work on Minix 3?)
|
2017-11-15 20:10:00 +00:00 |
|
david parsons
|
2979e4d7a4
|
In configure.sh: When the program pkg-config is found, don't forget to set PKGCONFIG=true
|
2016-09-21 16:06:50 -07:00 |
|
David Parsons
|
070f3ecf5a
|
Merge pull request #140 from leonsim/master
Add more tests for latex support for block mode.
|
2016-02-21 09:11:34 -08:00 |
|
david parsons
|
1c594226a0
|
Continuing with the horrible comment block kludgery :-(
|
2016-02-13 11:45:56 -08:00 |
|
david parsons
|
d658ae6990
|
Semi-revert the commentblock changes, then horribly kludge in a patch
that reenables them (memory corruption on freebsd 7.2 at program end
w new code; check control flow!)
|
2016-02-13 11:31:53 -08:00 |
|
david parsons
|
39e86abbdf
|
Add a bit of paranoia to the basename checker code
|
2016-02-02 21:54:26 -08:00 |
|
David Parsons
|
2bcdade475
|
Merge pull request #131 from koenpunt/mkd_cleanup-from-caller
handle cleanup from the caller
|
2015-10-25 15:34:07 -07:00 |
|
David Parsons
|
bde87f68ce
|
Merge pull request #125 from binki/master
#124: Convert much compiletime configuration to runtime flags
|
2015-07-12 20:31:01 -07:00 |
|
David Parsons
|
af67d351f8
|
Merge pull request #123 from joshix/master
Build mktags and >buildtags to make discount build on Plan 9 again.
|
2015-06-24 20:39:51 -07:00 |
|
David Parsons
|
242503cf08
|
Merge pull request #122 from Debian/email_mangle
Sigh. That was dumb on my part.
|
2015-04-10 07:59:50 -07:00 |
|
David Parsons
|
3660d212cc
|
Merge pull request #114 from markpizz/master
Fix makefile distclean to cleanup all the generated files and corrected ...
|
2014-11-21 13:52:56 -08:00 |
|
david parsons
|
22fd0cb385
|
change domain from pell.chi.il.us to pell.portland.or.us
|
2014-01-08 16:15:49 -08:00 |
|
David Parsons
|
274f4129ee
|
Merge pull request #95 from binki/master
Drop extraneous backslash in Makefile.in and use charset=utf-8 instead of charset-utf-8 in mkd2html
|
2013-10-22 22:31:28 -07:00 |
|
David Parsons
|
a08dd50f09
|
Merge pull request #90 from typester/urlencoded-anchor
Urlencoded anchor support
|
2013-10-22 09:49:21 -07:00 |
|
David Parsons
|
1cb8fe0a35
|
Merge pull request #92 from hartzell/master
Make long item labels on enumerated lists work.
|
2013-10-22 09:41:54 -07:00 |
|
David Parsons
|
81ed24aae0
|
Merge pull request #83 from sekimura/re-define-tags
check to see if S(extratags) before EXPAND(extratags)
|
2013-08-05 12:21:47 -07:00 |
|