Commit Graph
174 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 be8ab7a1dc Add support for backtick fenced code blocks 2012-08-07 23:25:56 -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 067891f3c6 Add a testcase for reported defects (and the desired output) 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 a95338fb92 Add a testcase for table alignment with leading |'s 2011-12-07 06:55:12 -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 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
2011-09-26 01:20:35 -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!
2011-07-31 11:14:42 -07:00
david parsons 990076f657 Change text blocking; the reference version doesn't split code off from text 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
david parsons b757cb8b2e Add test cases for fenced code blocks with tildes, paragraph with attached tildes 2011-07-22 10:01:39 -07:00
david parsons 5dd053c0de Add a testcase for tildes that aren't actually attached to text 2011-07-21 23:49:53 -07:00
david parsons ed67967a9e Add some more test cases for fenced code blocks 2011-07-20 23:22:18 -07:00
david parsons f2d50caa02 Add test cases for fenced code blocks 2011-07-20 18:45:11 -07:00
david parsons 0be590709c Tweak table handling to hew more closely to the markdown extra implementation.
In particular, expand `\` escapes to include `:` and `|`, and follow how
the markdown extra dingus treats escaped line parts.
2011-03-01 10:02:13 -08:00
david parsons 448036afc2 Re-enable the toc tests for --with-id-anchor 2011-02-25 23:40:50 -08:00
david parsons acdd58b6f0 Add new config options to support old-style table of contents links.
--with-id-anchor makes discount use `id=` instead of `a name=`, and
--with-anchor-default=C makes discount use the character C instead of
`.` for illegal characters in anchors.
2011-02-25 22:43:04 -08:00
david parsons 8fc4cc3729 Add a test for markdown extra footnotes with a defined prefix 2011-02-18 22:31:48 -08:00
david parsons 450f5e5d80 Rework the try function to support multiple option arguments (starting with -) 2011-02-18 22:31:23 -08:00
david parsons d3ff8d7129 Add a pair of test cases for markdown extra footnotes 2011-01-29 20:55:45 -08:00
david parsons 27bb2061f7 Rework the TOC code so that it uses an a name= anchor
instead of `hx id=` (because the id= may pick up css unexpectedly.)
2011-01-24 17:05:44 -08:00
david parsons 80ad1f7498 Repair a defect in the way >%class%es are handled;
css class names are `{-_.A-Za-z}{-_.A-Za-z0-9}*` (plus some unicode characters
which I don't support yet.)
2011-01-19 09:24:06 -08:00
david parsons 36810e0567 s/Compatability/Compatibility/g 2011-01-09 10:10:48 -08:00
david parsons 9837ecc1f9 Add a few tests for unclosed style blocks 2011-01-06 08:22:19 -08:00
david parsons b8658677b0 Fix a typo in a comment in emmatch.c; add a truncated block test to tests/html.t. 2011-01-05 12:25:06 -08:00
david parsons 3db5f1aec8 Add more test cases against markdown extra definition lists and unclosed html blocks 2011-01-02 00:39:48 -08:00
david parsons cd0e8f8295 Need to distingush between closing tag on last line and unclosed block.
Also need to recognise an unclosed closing tag.
2011-01-02 00:27:19 -08:00
david parsons b22d448d1a Add some test cases for markdown extra style dls 2010-12-29 09:49:23 -08:00
david parsons bf6845233c Rework (again) indentation inside list items.
Indent should never be > 4 for enumerated lists; this means that I have to
test and cut back large indents and change my test cases to account for
leading whitespace on deeply (2 spaces + enumerated marker + 1 space) indented
items.
2010-12-11 14:48:45 -08:00
david parsons f00ae83c99 Change the autolink prefix to closer fit to the reference dingus; if a <url> has a known protocol prefix, it does not need a leading // after the prefix. 2010-11-09 15:57:21 -08: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 15552cf865 Merge branch 'master' of orc@gw:Src/discount 2010-10-28 18:26:53 -07:00
david parsons 7d04170d60 Rework (again!) the guts of linkylinky to support markdown
1.0.2b8-style `<`..`>` links: these are like the original
format I implemented before I rolled them out while chasing
compatability in that a url starting with '<' contains _all
characters_ until an unescaped '>' is encountered.
2010-10-28 18:26:38 -07:00
david parsons 2a85cb0152 Version 2.0.2; fix a glitch in new-style [] processing that
would collapse two sequential new-style `[link]`s into one
no matter how much space was between them.  The reference dingus
only coalesces adjacent new-style `[link]`s together if they
are physically adjacent or have one space between them.
2010-10-28 18:17:10 -07:00
David Parsons 5359da76cc Add a couple more table of contents tests 2010-10-23 16:03:28 -07:00
David Parsons bab5892a5a Pull the relaxed/strict emphasis tests for embedded underscores
out of the former `if markdown -V | grep RELAX` block they were
in.
2010-10-23 15:57:33 -07:00
david parsons a91572d5b3 Modify the dl test to check that I can enable and disable
definition lists at runtime.
2010-10-22 13:28:22 -07:00
david parsons aee1c2f416 Merge orc@gw:Src/discount
Conflicts:

	mkdio.c
2010-10-22 11:39:33 -07:00
David Parsons 06a3b2d755 Move the flag bit for TABSTOP to the correct place. 2010-10-21 23:19:19 -07:00
David Parsons 110f3f29ec Make pandoc headers runtime configurable (default on, disable
with MKD_NOHEADER); move the config bits down to nestle against
the other bits.
2010-10-21 21:54:54 -07:00
David Parsons 0b39f0c30a First pass at discount version 2: convert flags into a 32 bit quantity,
make superscript and relaxed emphasis into flag bits instead of compile
switches.
2010-10-21 21:03:17 -07:00
david parsons 5fc4a18512 1. Redo the _to_anchor() function to stick with xhtml label restrictions
2. tweak the id: pseudo-protocol tests to reflect them being span instead of a
2010-09-03 16:15:49 -07:00
david parsons e78893be14 Add a config flag (MKD_NOSTRIKETHROUGH) to disable strikethrough.
Also add a test case file and `-f` options for the markdown command
line program.
2010-08-31 17:08:18 -07:00
david parsons 2cab1cd458 Rework the backtick code so it won't do closing backtick fragments. 2010-08-31 14:12:12 -07:00
David Parsons d795b0fd22 Version 1.6.7 -- fix the mismatched backtick bug 2010-08-27 23:20:06 -07:00
David Parsons 4176e8c8a6 Add a testcase for escaped []s in embedded links 2010-06-12 18:48:43 -07:00
David Parsons a4756602f1 Strip the --with-html5 configure.sh option out, make html5 support into a library function.
This involves reworking the blocktag[] array into a STRING(), and moving the entire
kit and kaboodle out into a separate file with a public initializer (mkd_prepare_tags),
definer (mkd_define_tag) sort (mkd_sort_tags, and lookup (mkd_search_tags) function.
The html5 tags are further removed into their own function (mkd_with_html5_tags) which
can be included when someone wishes to have html5 support.

Note that html5 support is library-wide;  once you call mkd_with_html5_tags, you're
stuck with them everywhere and can't back them out.   This might be revisited later,
2010-06-04 10:16:51 -07:00