Commit Graph
696 Commits
Author SHA1 Message Date
david parsons 61854a2064 Clean up test cases for \<; need one for whitespace, one for EOF, one for text 2012-09-28 10:50:22 -07:00
david parsons 5d89faf8ca A \< at the end of the input is exactly the same as \<(space) 2012-09-28 10:44:46 -07:00
david parsons c41feae1ca Tweak the previous Markdown does not escape... commit to simply push
out the backslash and back up to the start of the <[nonwhite] sequence,
so -fnohtml will continue to work.
2012-09-28 08:28:06 -07:00
david parsons 80263c94d3 Markdown.pl does not appear to escape \<[nonwhite] sequences. Sigh. 2012-09-28 08:26:31 -07:00
david parsons 3abc2a6754 Fix clipping of table captions where there are trailing spaces on the line 2012-08-23 21:02:58 -07:00
david parsons ff86dcfbf6 Tweak the (hideously ugly) prototype implementation of table captions
(don't need to test for lastnonblank() since it always returns >= 0,
walk the table paragraph first to pick out the caption line(s) and
emit them before the table header and body)
2012-08-18 09:04:42 -07:00
david parsons 1765d92a79 Table captions 2012-08-08 22:18:30 -07:00
david parsons 108ce626c0 Strip out some debugging output v2.1.5a 2012-08-08 20:37:52 -07:00
david parsons 675de713b4 Fix a nasty bug when fenced code is not enabled 2012-08-08 20:36:15 -07:00
david parsons 67a6cd94bd Screwed up the #ifdef around fenced code detection in checkline 2012-08-08 20:35:54 -07:00
david parsons 64dc2db75e Tweaks to configure.inc to maybe make clang a little less anal about things. 2012-08-08 20:27:30 -07:00
david parsons be8ab7a1dc Add support for backtick fenced code blocks v2.1.5 2012-08-07 23:25:56 -07:00
david parsons 8379b9bca3 In markdown, emit style blocks before table of contents html, and don't
forget to document this thing!
2012-08-07 11:12:44 -07:00
david parsons 59b4870573 Add -S (output style sections), -n (don't output generated text) options to the markdown test program. 2012-08-07 11:05:21 -07:00
david parsons 28ea79b605 Add MKD_NOSTYLE to mkdio.h 2012-08-07 08:07:51 -07:00
david parsons f34f9a1f51 Add the new option MKD_NOSTYLE, which disables special handling
of style blocks and treats them like plain old html.
2012-08-05 20:30:45 -07:00
david parsons 9d3dcffcd7 Add the gfm_...() method prototypes to mkdio.h as well as markdown.h 2012-06-04 21:34:43 -07:00
david parsons f3231d5f9e Add prototypes for the two gfm_...() input methods 2012-06-04 21:29:11 -07:00
david parsons 09945b7393 Create the gfm_string() method that does github flavoured markdown
on strings.
2012-05-31 22:37:58 -07:00
david parsons 66ac90e4b6 Add support for github flavoured markdown linebreaks (by adding new
functions that pad every input line with two spaces.)
2012-05-30 22:46:46 -07:00
david parsons e1ad8e8fe1 Use | instead of < & > to force start of word/end of word alignment
for smartypants substitutions.
2012-05-30 22:31:48 -07:00
david parsons 199213eb2e Modify theme so that I can pass in options (with -C & -c; -o is used) 2012-04-03 13:23:21 -07:00
david parsons 561ddc6620 strip out the (orphan? does not affect the test suite) code that calls linkyformat() with a NULL ref 2012-03-08 12:14:16 -08:00
david parsons 190bff643b Modify the search order for shared library detection (macOS weirdness) 2012-03-07 08:41:08 -08:00
david parsons e645861ae2 Tweaks to argument handling 2012-03-07 08:40:42 -08:00
david parsons a8810a6e5c Be paranoid; check to see if S(t->text) before looking at T(t->text) 2012-03-07 08:40:21 -08:00
david parsons 6eacbc931b I macro if(e) into if( (e) ) if gcc or clang are detected 2012-01-24 09:53:51 -08:00
david parsons a8a4d287be I don't need to turn off unused value warnings in clang now that I've reworked CLIP() 2012-01-24 09:49:47 -08:00
david parsons b591d39757 Rework the internals of CLIP() so that it always assigns something to S(t);
this makes anal-compulsive C compilers (I'm looking at _you_, clang) stop
whining about unused values in expressions.
2012-01-24 09:40:42 -08:00
david parsons f171d49d6d Tweak the configure process to
1. Report back which broken compiler was detected (IS_GCC or IS_CLANG)
2. If the offending compiler is gcc or clang, add appropriate -Wno-
   flags to make it stfu about constructs that Big Brother disapproves
   of.
3. emit the substitutions for CC and CFLAGS during AC_OUTPUT instead
   of during C compiler detection (this means that if you don't check
   for a C compiler, CC and CFLAGS will get set to the empty string
   in substituted files!)
2012-01-23 22:09:14 -08:00
david parsons 6c1737eacd don't forget to include tags.h 2012-01-23 22:05:24 -08:00
david parsons 57ea29d87f Add $LFLAGS to the build line for theme 2012-01-19 08:15:28 -08:00
david parsons dc674a3da0 add a dummy cast to the two sort_by_... functions to make clang and gcc
shut the fuck up about pointer type mismatches.
2012-01-19 02:39:38 -08:00
david parsons e12f83d6e0 Split CFLAGS into CFLAGS & LFLAGS (clang whines about -L when not linking.) 2012-01-18 18:27:17 -08:00
david parsons 067891f3c6 Add a testcase for reported defects (and the desired output) v2.1.3 2012-01-16 13:08:52 -08:00
david parsons 734161e9e1 Take out the block-level html test for (non-block) <br> tag 2012-01-16 12:04:59 -08:00
david parsons 3304d5b246 <br> is not a block-level html element 2012-01-16 12:02:34 -08:00
david parsons 5a22224051 Add a dummy rule for VERSION (workaround for mingw bug?) 2011-12-16 11:59:04 -08:00
david parsons a95338fb92 Add a testcase for table alignment with leading |'s 2011-12-07 06:55:12 -08:00
david parsons 177508fe6d Table handling for tables with leading |'s is still messed up;
if the table has leading |'s, trim them off every table line
before processing the table.
2011-12-07 06:51:34 -08:00
david parsons 96338942d1 Changes contributed by Stefano D'Angelo to clean up the toc html 2011-11-23 18:26:23 -08:00
david parsons b3eb76406c Take out the / between $(DESTDIR) and the target directories in
the install rules;  Works around (maybe) a defect in Cygwin where
a leading // introduces a Microsoft-style nfs pathname.
2011-11-23 17:14:03 -08:00
david parsons 094b09800e 1. In configure.inc, check for (and comment disapprovingly) if someone is inflicting clang on discount.
2. strip types off `main()`s so that stupid clang won't die.
2011-10-06 23:26:33 -07:00
david parsons ae3b183887 Work around a defect in clang v3 2011-10-06 15:29:26 -07:00
david parsons a888c16a4f 1. Horribly hack splat() so that it trims off leading and trailing|'s
2. change the test cases to reflect the new output
3. Add a pair of test cases to catch table tweaks
v2.1.2
2011-09-26 01:20:35 -07:00
david parsons d09db0993c Rework the table detector logic so that it checks regular markup blocks. 2011-09-25 23:29:31 -07:00
david parsons b9c84032eb Credit John Foerch for the endash/emdash smartypants bugfix 2011-07-31 11:23:37 -07:00
david parsons 40e61f6c5a I messed up the endash & emdash smartypants versions when I wrote discount,
and didn't realize I'd done that until John Foerch sent me mail today pointing
out the defect.  Whoops!
v2.1.1.3
2011-07-31 11:14:42 -07:00
david parsons 990076f657 Change text blocking; the reference version doesn't split code off from text v2.1.1.2 2011-07-28 18:26:18 -07:00
david parsons 1732be2478 Tweak the output format for a failed test to give the source and the diff between what we wanted and what we got. 2011-07-28 13:51:34 -07:00