Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Testing framework now runs on Python 2 & 3 unmodified. | Waylan Limberg | 2012-12-14 | 5 | -34/+45 |
| | |||||
* | Normalize line endings in tests as git may alter them on Windows. | Waylan Limberg | 2012-12-14 | 1 | -2/+3 |
| | | | | | Without this, all SyntaxTests would fail from a git checkout on Windows. On other systems, it should have no effect. | ||||
* | Fixed #165. Switched the order of treeprocessors when attr_list and headerid ↵ | Waylan Limberg | 2012-12-13 | 1 | -0/+12 |
| | | | | extensions are used togeather. While this means headerid may alter IDs defined in attr_lists for uniqueness, automaticaly generated ids will not contain unparsed attr_lists. This is the lesser of two evils - and actually generates a more valid output (all IDs will be unique) | ||||
* | Fixed #164. attr_list extension attribute names are now sanitized and won't ↵ | Waylan Limberg | 2012-12-13 | 2 | -1/+3 |
| | | | | crash the serealizer. | ||||
* | Fixed CodeHilite test when pygments is not installed. | Waylan Limberg | 2012-11-04 | 1 | -1/+1 |
| | |||||
* | Fixed #153. Two spaces at end of paragraph is not a linebreak. | Waylan Limberg | 2012-10-21 | 3 | -12/+6 |
| | |||||
* | Fixed #152. Spaces in links are now escaped. | Waylan Limberg | 2012-10-21 | 2 | -3/+3 |
| | |||||
* | Fixed #151. Raw html matching is now case-insensitive. | Waylan Limberg | 2012-10-21 | 2 | -1/+12 |
| | |||||
* | Merge commit '63020032eab733ed74f06a687abb5c358de4e931' | Dmitry Shachnev | 2012-08-26 | 1 | -1/+0 |
|\ | |||||
| * | Don't import from doctest, it's no longer used | Dmitry Shachnev | 2012-08-26 | 1 | -1/+0 |
| | | |||||
* | | Fix `footnote_many_footnotes` test as per #129 | Dmitry Shachnev | 2012-08-25 | 1 | -2398/+2398 |
|/ | |||||
* | Fixed #129. Footnotes now output valid HTML5. | Waylan Limberg | 2012-08-09 | 3 | -15/+15 |
| | | | | | | | | | | | | | | | | As HTML5 has depreciated use of `rev=anything` and `rel=footnotes`, they are no longer inlcuded in the output when the output_format is set to HTML5. Note that if someone successful registers a spec for `rel=footnotes` in the future (as a microformat), then that could be considered valid. But until that happens, it is invlaid to use in HTML5. Therefore, we remove it from the output (when outputing HTML% only). As an alternative, two new classes are set (in all output_formats). On the link to the footnote (where `rel=footnotes` was used), we set `class=footnote-ref` and on the backlink (where `rev=footnote` was used), we set `class=footnote-backref`. Also updated the tests to reflect to the new classes in the output. | ||||
* | Fixed #114. Converted doctests to unittests. While I left the doctests there ↵ | Waylan Limberg | 2012-07-26 | 1 | -0/+275 |
| | | | | for documentation purposes, they are no longer being run. Perhaps I'll delete them later and add links to the online docs or something. | ||||
* | Added support for <foo>+<bar> lexers of Pygments | papaeye | 2012-07-21 | 2 | -0/+20 |
| | |||||
* | Fixed #115. Make sure all file objects are closed. | Waylan Limberg | 2012-07-12 | 1 | -2/+5 |
| | |||||
* | Fixed #112 and cleaned up error reporting when loading extensions. | Waylan Limberg | 2012-07-12 | 1 | -3/+3 |
| | |||||
* | Fixed #106. Replaced all references to freewisdom.org (except for Yuri's ↵ | Waylan Limberg | 2012-06-28 | 4 | -24/+24 |
| | | | | homepage). | ||||
* | Add test for 5236a9838c580a17c3299efb97d9f41ce2a1efab | Catalin Iacob | 2012-04-17 | 3 | -0/+7 |
| | |||||
* | tests for 9852c2263ef7775d2a508a9c1721148cbf3ae258 | fin | 2012-04-11 | 2 | -0/+2 |
| | |||||
* | Fixed #85. Odict now handles link errors correctly. | Waylan Limberg | 2012-03-19 | 1 | -0/+8 |
| | | | | Also added a test. Thanks for the report. | ||||
* | Fixed #78. Added support for two line link refs. | Waylan Limberg | 2012-02-02 | 2 | -1/+7 |
| | | | | | Also refactored the reference preprocessor to make this a little easier to implement. Regex does more now. | ||||
* | Fixes #64. Added sane_list extension. | Waylan Limberg | 2012-01-24 | 3 | -0/+40 |
| | | | | | | | | | | This is an extension which alters the behavior of lists to be less surprising. If turned out to be rather simple to code. I'm surprised no one had written it yet. I should note that this extension does not generate separate lists if different unordered list markers are used (`*` verses `-` verses `+`) The way the parser works that would be a little more tricky. | ||||
* | Removed Codehilite from tests. | Waylan Limberg | 2012-01-20 | 2 | -32/+32 |
| | | | | | | Codehilite generates differant output with differant versiosn of pygments. We support those various versions of pygments but can't unsure that the same version is always available on every platform tests are run on. | ||||
* | It is spelled 'serializers' not 'searializers'. | Waylan Limberg | 2012-01-20 | 1 | -7/+7 |
| | |||||
* | Inline html is now escaped by the searializer. | Waylan Limberg | 2012-01-19 | 6 | -7/+7 |
| | | | | | | | | Final fix to issue introduced in fix for #59. Weird stuff inside angle brackets now also work in safe_mode='escape'. We just did the same thing as with block html, let the (x)html searializer do the escaping. Tests updated including the standalone test moved to match the non-escape cases. | ||||
* | Partial fix for issue introduced in fix for #59 | Waylan Limberg | 2012-01-19 | 6 | -1/+8 |
| | | | | | Markdown markup inside angle bracktes now gets rendered properly in all cases except when safe_mode='escape'. Also added tests. | ||||
* | Cleaned up tests after merging pull request fixing #72. | Waylan Limberg | 2012-01-18 | 5 | -3/+0 |
| | |||||
* | Support github-flavored markdown by making the '.' optional before language ↵ | Mike Dirolf | 2012-01-17 | 3 | -0/+69 |
| | | | | type. | ||||
* | Fenced code blocks need to end with a fence on its own line. | Mike Dirolf | 2012-01-17 | 3 | -0/+69 |
| | |||||
* | When safe mode is 'escape', don't allow bad html to stop further processing. | Mike Dirolf | 2012-01-14 | 4 | -21/+28 |
| | | | | | | | | | | See tests/html4_safe/html_then_blockquote.(txt|html). It looks like having unclosed block-level html elements was causing further processing not to happen, even in the case where we're escaping HTML. Since we're escaping HTML, it seems like it shouldn't affect processing at all. This changes output results in a couple of other tests, but the new output seems reasonable to me. | ||||
* | Fixed #68. Blank line is not required after html comments. | Waylan Limberg | 2012-01-15 | 3 | -2/+12 |
| | | | | | Interestingly, the change to the misc/mismatched-tags test is inline with PHP Markdown Extra's behavior but not markdown.pl, which produces invalid html. | ||||
* | Fixed #57. Multiline HTML Blocks no longer require a blank line after them. | Waylan Limberg | 2012-01-15 | 3 | -2/+17 |
| | |||||
* | attempt at a fix for issue w/ MD links inside of html tagish stuff with safe ↵ | Mike Dirolf | 2012-01-12 | 3 | -0/+5 |
| | | | | mode on. | ||||
* | also undo changes to the test.cfg | Daniel Gottlieb | 2011-12-27 | 1 | -4/+0 |
| | |||||
* | appropriately move the tests to the fenced code documentation in the ↵ | Daniel Gottlieb | 2011-12-27 | 2 | -150/+0 |
| | | | | extension source | ||||
* | Allow tildes or backticks in the fenced_code extension to support the syntax ↵ | Daniel Gottlieb | 2011-12-27 | 3 | -1/+155 |
| | | | | used by github | ||||
* | Some more tests for issue #51. An upate to Marcin Kasperski's tests (which I ↵ | Waylan Limberg | 2011-11-17 | 3 | -2402/+1212 |
| | | | | previously merged). Thanks Marcin. Also added a test for not-indented secondary lines of a first paragraph in a footnote definition. | ||||
* | Merge git://github.com/Mekk/Python-Markdown into mekk | Waylan Limberg | 2011-11-17 | 2 | -0/+10796 |
|\ | |||||
| * | Example test for #51 (crash on docs with +1000 footnotes) | Marcin Kasperski | 2011-11-10 | 2 | -0/+10796 |
| | | |||||
* | | Fixed #51. Removed recussion from footnote preproccessor. Also refactors the ↵ | Waylan Limberg | 2011-11-18 | 3 | -14/+7 |
| | | | | | | | | code to provide a few other minor improvements s that output more closely matches php's output. Thus the changes in the tests. | ||||
* | | Fixed #47. Improved HRProccessor.\n\nPython's re module does not support ↵ | Waylan Limberg | 2011-11-17 | 2 | -1/+7 |
|/ | | | | atomic grouping, which was slowing the HR regex down if a long HR ended with a non HR char (casing the regex to backtrack). Therefore, we have to simulate atomic grouping. Fortunately, we only need to match end-of-line or end-of-string after the atomic group here, so it was an easy case to simulate. Just remove the '$' from the end of the regex and manualy check using m.end(). The run method was refactored while I was at it, saving us from running the regex twice for each HR. | ||||
* | No longer skipping all tests from PHP test suite. We skip some because PHP ↵ | Waylan Limberg | 2011-10-06 | 1 | -1/+38 |
| | | | | differs from markdown.pl and we match markdown.pl. A few others are skipped because we have to adjust for a few edge cases. See comments in tests/php/test.cfg for details. | ||||
* | Skipped 3 failing pl tests with some weird edge cases. A significant rewrite ↵ | Waylan Limberg | 2011-10-06 | 1 | -0/+12 |
| | | | | if inlinepatterns will probably be needed for this. Putting it on hold till after 2.1-final is released. | ||||
* | Run a few more pl tests. Some of them are failing but should be easily fixable. | Waylan Limberg | 2011-08-27 | 2 | -0/+12 |
| | |||||
* | Added greater-than as an escaped character. Apparently markdown.pl escapes ↵ | Waylan Limberg | 2011-08-27 | 2 | -0/+3 |
| | | | | it even though it is not documented. | ||||
* | Fixed #39. Refactored escaping so that it only escapes a predifined set of ↵ | Waylan Limberg | 2011-08-17 | 2 | -3/+0 |
| | | | | chars (the set defined by JG in the syntax rules). All other backslashes are passed through unaltered by the parser. If extensions want to add to the escapable chars, they can append to the list at markdown.ESCAPED_CHARS. | ||||
* | Added some fadfile commands to (re)generate tests when they are added or ↵ | Waylan Limberg | 2011-08-04 | 1 | -5/+38 |
| | | | | updated. | ||||
* | TestCase.assert_ and TestCase.failUnless are depreciated in Python 3 in ↵ | Waylan Limberg | 2011-07-28 | 1 | -3/+3 |
| | | | | favor of testCase.assertTrue. Might as well be using the right method in our tests. | ||||
* | Skip the UnidoceDecodeError API test in Python 3.x as all input should be ↵ | Waylan Limberg | 2011-07-28 | 1 | -2/+3 |
| | | | | unicode anyway. | ||||
* | Python 3.2 made some changes to the configparser which broke the testing ↵ | Waylan Limberg | 2011-07-28 | 2 | -5/+5 |
| | | | | framework. With a simple addition to our subclass (which we then make use of), this is an easy fix. |