18 Commits
Author SHA1 Message Date
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!
2011-07-31 11:14:42 -07:00
david parsons 166e52c320 Add test cases for <> links (regular and markdown 1 compat), split the superscript tests out from smarty.t 2010-11-09 13:08:02 -08:00
david parsons 7f1080c2f0 Remove the last two markdown -V | grep FEATURE blocks. 2010-10-28 19:51:07 -07:00
David Parsons 3aa4343255 Rework all of the test cases so they use tests/functions.sh,
which gives me the ability to do verbose and nonverbose test
suite running (`VERBOSE=1 make test` is the traditional output
now, and `make test` just gives pass/fail on each .t file)
2010-02-11 23:13:29 -08:00
David Parsons ebdd489ed7 1. Fix a bug in generate.c where MKD_NO_EXT was not being handled.
2. Add -fext to the options for the markdown program
3. `try`ify a bunch more of the test cases.
2009-06-17 14:30:43 -07:00
David Parsons 2887caf2c3 tryify three more testcases 2009-06-17 13:03:36 -07:00
David Parsons 49ce44903f Test A^B inside a link title. 2008-09-21 07:47:42 -07:00
David Parsons 0120c3e3ae 1. Add the flag MKD_STRICT, which disables any configured superscripting
of A^B and non-emphasis on A_B.
2. markdown(1) now has the `strict` (enable `MKD_STRICT`) and `relax` (disable
   `MKD_STRICT`) flags.
3. truncate the input buffer at the end of every call to `text()` (corrects
   defect with --relaxed-emphasis where it was incorrectly looking back past
   the start of the input and triggering on the contents of the previous
   input (not reliably, so only detected when I put MKD_STRICT into the
   code.)
4. `markdown.1` manpage renamed to `markdown.1.in` and processed according
   to whether --relaxed-emphasis and/or --with-superscript are configured.
2008-09-03 11:36:07 -07:00
David Parsons e1f898adb3 1. Enable --with-superscript
2. Write a superscript test case
3. Up to version 1.2.7
4. have the version string include whether superscripts are enabled
2008-07-30 22:08:46 -07:00
David Parsons dd62ce7675 Xcode for Macos 10.5 sucks. If you're running /bin/sh
here, `echo -n` *does not work* from inside it.  So I
will write my own version of echo and use that for test
output.
2008-05-23 21:36:15 -07:00
david parsons cce907699b Messed up the exclusion flags in linkylinky(), which killed [![][]][]
links.   Also add another test for 't smartypantsing.
2008-01-18 22:18:58 -08:00
david parsons 908fe58069 Clean up the guts of smartypants; use the new function islike() to
check for complex pattern matches instead of hand-matching.
2008-01-12 01:49:47 -08:00
david parsons bbbf3a1e44 Repair the ` `` testcase, move it from smarty.t to misc.t 2008-01-10 22:44:54 -08:00
david parsons 38640dc511 Pass flags in to mkd_in() and mkd_string(), protect against user flags 2008-01-10 16:02:30 -08:00
david parsons 402c0ea525 Edits to make markdown pass John Gruder's test suite. 2008-01-09 17:36:55 -08:00
David Parsons 335c34c6c1 Another pass at the separated list entry problem. Now I parse
entire lists in one fell swoop, discarding whitespace between
entries and setting an explicit paragraph alignment on the
two list items surrounding the whitespace.
2008-01-05 09:53:19 -08:00
David Parsons 9146677f2d Don't forget to initmarkdown() in mkd_text() [need to
set the random number generator].   Add ``it's'' smartypants
test, expand some of the list tests, add a category for misc
tests.
2008-01-05 01:08:11 -08:00
David Parsons 1d9d6da4c8 Don't forget to do null pointer checking before trying to
dereference them.
2008-01-03 22:20:54 -08:00