aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_syntax
Commit message (Collapse)AuthorAgeFilesLines
* Moved enable_attributes keyword to extension: legacy_attrs.Waylan Limberg2018-07-241-0/+48
| | | | | | | If you have existing documents that use the legacy attributes format, then you should enable the legacy_attrs extension for those documents. Everyone is encouraged to use the attr_list extension going forward. Closes #643. Work adapted from 0005d7a of the md3 branch.
* Only strip spaces in tables (#644)Isaac Muse2018-02-222-0/+43
| | | | | Strip only the space character and not things like nbsp in tables. Fixes #635.
* Flexible inline (#629)Isaac Muse2018-01-173-0/+237
| | | | Add new InlineProcessor class that handles inline processing much better and allows for more flexibility. This adds new InlineProcessors that no longer utilize unnecessary pretext and posttext captures. New class can accept the buffer that is being worked on and manually process the text without regex and return new replacement bounds. This helps us to handle links in a better way and handle nested brackets and logic that is too much for regular expression. The refactor also allows image links to have links/paths with spaces like links. Ref #551, #613, #590, #161.
* Correct spelling mistakes.Edward Betts2018-01-131-1/+1
|
* Provide new testing framework.Waylan Limberg2018-01-086-0/+1305
As a part of the Markdown lib, test tools can be used by third party extensions. Also keeps test dir clean as it only contains actual tests. More work in this vein to come as the need for Nose is removed. Tests are defined as Unittests rather than in text files allowing features to be more easily broken into units and run individually. Based completely on standard lib unittest with no external dependencies. Use `python -m unittest tests.test_syntax` to run. Pulled some tests from https://github.com/karlcow/markdown-testsuite. Many more test units to pull from that source. As we encounter the need to edit an existing textfile-based test, or add a new test, a new test should be created with this framework and the old test should be deleted. Also need to delete existing testfile-based tests which are covered in the new tests included here.