aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Various tweaks to release notes.Waylan Limberg2014-08-271-34/+46
|
* Allow named extensions to specify the Class NameWaylan Limberg2014-08-273-12/+61
| | | | | | | | | | | | | | | | | | If you were to import the class like this: from path.to.module import SomeExtensionClass Then the named extension would be the string: "path.to.module:SomeExtensionClass" This should simplify loading extensions from the command line or template filters -- expecially when multiple extensions are defined in a single python module. The docs still need updating. I'm waiting to update the docs after implementing #335 and #336 as that will require a major refactor of that section of the docs anyway.
* Refactored extension importing.Waylan Limberg2014-08-276-27/+45
| | | | | | | | | | | | | We now use importlib which means we no longer support Python 2.6. Also, this refactor properly imports third party extensions which reside at the root of PYTHONPATH. Previously, either `markdown.extensions.` or `mdx_` would be appended to any extension name that did not contain a dot, which required third party extensions to either be in submodules or use the old `mdx_` naming convention. This commit is also in preperation for #336. It will now be much easier to deprecate (and later remove) support for the old ways of handling extension names.
* Removed some old codeWaylan Limberg2014-08-251-4/+1
| | | | | | These couple lines were from an old - no longer used - method of stashing inlines. There is no need for it today. The if statement would never evaluate True.
* Added some inline pattenr tests.Waylan Limberg2014-08-259-3/+22
| | | | | | | | | markdown/inlinepatterns.py is now at 99% coverage. I have no idea why the two remaining lines are not not covered. I it not clear to me under what circumstances this two if statements would ever evaluate to True. I'm inclined to just remove them, but perhaps there is an edge case I'm missing. I'll take another look later.
* Fixed a bug in markdown.util.parseBoolValueWaylan Limberg2014-08-252-3/+8
| | | | | A couple scenarios with "None" were previously not accounted for. Also updated tests which guives us 100% for markdown/util.py
* Add test of unsafe HTML in stash with safe_mode='excape'Waylan Limberg2014-08-251-0/+20
| | | | This should give us 100% coverage of postprocessors.py.
* Include __main__.py in coverage.Waylan Limberg2014-08-222-4/+3
|
* Note deprecation of `force_linenums` keyword in release notes.Waylan Limberg2014-08-221-3/+9
|
* Added `--extension_configs` option to the CLI.Waylan Limberg2014-08-224-29/+251
| | | | | | | | | | The `--extension_configs` option must point to a YAML or JSON file. The contents of the file must parse to a Python Dict which will be passed to the `extension_configs` keyword of the `markdown.Markdown` class. Also added tests for all of the CLI option parsing options and updated documentation.
* Cleaned up some whitespace inconsistancies.Waylan Limberg2014-08-221-1/+1
|
* Update docs for tests refactor. INI => YAML. Relates to #333.Waylan Limberg2014-08-212-16/+17
|
* Standardized all extension header comments to a uniform format.Waylan Limberg2014-08-2117-446/+193
|
* 'http://packages.python.org/Markdown/' => ↵Waylan Limberg2014-08-2115-32/+32
| | | | 'https://pythonhosted.org/Markdown/'. The former redirects to the latter anyway. Might as well point to the actual destination.
* Updated generate code for tests refactor. Related to #333.Waylan Limberg2014-08-212-4/+4
|
* Upped version to 2.5-dev and started release notes.Waylan Limberg2014-08-205-4/+51
|
* Fix a typo in testing refactor. Related to #333Waylan Limberg2014-08-201-1/+1
|
* Update lib reference docs to reflect that extension_configs accepts dicts. ↵Waylan Limberg2014-08-201-10/+14
| | | | Related to #325
* Refactored test framework to use YAML config files rather than INI. Fixes #333.Waylan Limberg2014-08-2018-212/+245
|
* Renamed 'smart_substitutions' option to 'substitutions'. Fixed a typo.Martin Altmayer2014-08-153-8/+7
|
* Added test for the new 'smart_substitutions' feature of Smarty extension.Martin Altmayer2014-08-141-0/+33
|
* Fixed an old typo in the smarty extension and added a test case.Martin Altmayer2014-08-113-3/+5
|
* Replaced smart_lsquo etc. by a single option smart_substitutions which ↵Martin Altmayer2014-08-112-23/+49
| | | | allows to overwrite all substitution strings. Fixed line length in docs.
* Added options to the Smarty extension that configure the text that is used ↵Martin Altmayer2014-08-092-3/+23
| | | | to replace quotes. This makes it possible to use the correct quotes in languages other than English.
* Makefiles require tabs - not spaces - for indentation. see #328Waylan Limberg2014-08-051-3/+3
|
* Ensure MANIFEST is always included in builds. Fixes #328.Waylan Limberg2014-08-051-0/+3
|
* Fixed silly typo. Relates to #325.Waylan Limberg2014-08-011-1/+1
|
* Updated extension API docs for Extension.__init__ refactorWaylan Limberg2014-08-011-9/+18
| | | Relates to #325.
* Ensure Extension.getConfigInfo Test always passesWaylan Limberg2014-08-011-2/+3
| | | | | Dicts don't preserve order but still will be equal while lists of tuples always preserve order. When we use a dict to create a list of tuples, the results are unpredictable - especially for a equality test. so we need to compare dicts, not lists. Related to #325
* Update reference docs for recent Extension.__init__ refactor.Waylan Limberg2014-08-011-3/+13
| | | Noted that using keywords it the prefered method of passing config options to extensions. Also updated the example sto demonstrate the new prefered way as discussed in #325.
* Update extensions for Extension.__init__ refactorWaylan Limberg2014-07-3120-118/+121
| | | | | | | | | | | | | | | | | Fixes #325. All extensions can now accept a dict of configs or **kwargs, not just a list of tuples. Third party extensions may want to follow suite. Extensions may only accept keyword arguments in the future. These changes still need to be documented. A couple things of note: The CodeHilite extension previously issued a DeprecationWarning if the old config key `force_linenos` was used. With thins change, a KeyError will now be raised. The `markdown.util.parseBoolValue` function gained a new argument: `preserve_none` (defaults to False), which when set to True, will pass None through unaltered (will not convert it to False).
* Refactor markdown.extensions.Extension.__init__()Waylan Limberg2014-07-292-8/+59
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As pointed out in #325, setting up Extension configs is kind of a mess. Some places pass a list of tuples on initialization, others a dict. And sometimes they're passed as an arg, othertimes a kwarg. Addiitonaly, the docs are just as inconsistant. This refactor addresses all those sinerios with tests included. The existing extensions still need refactored. But the fact that their tests still pass means we havn't broken third party extensions either. This refactor also introduces a new API, which is the prefered method going forward. All docs should be updated to match. Whereas previously one might do: ```python MyExtension(configs={'key': 'foo', 'otherkey': 'bar'}) ``` This can now be done: ```python MyExtension(key='foo', otherkey='bar') ``` Of course, the old way still works for backward compatability. But that means the `configs` keyword has special status and cannot be used for another purpose.
* Merge pull request #327 from mitya57/masterWaylan Limberg2014-07-271-1/+1
|\ | | | | tox.ini: install pytidylib from PyPI
| * tox.ini: install pytidylib from PyPIDmitry Shachnev2014-07-251-1/+1
|/ | | | PyTidyLib Python 3 issues have been fixed in 0.2.3 release
* Mark a few more lines with 'no cover' - missed them the first time through. ↵Waylan Limberg2014-07-113-6/+6
| | | | The rest should have test cases added.
* Merge branch 'master' of github.com:waylan/Python-MarkdownWaylan Limberg2014-07-110-0/+0
|\
| * Added Coveralls status badgeWaylan Limberg2014-07-101-0/+1
| |
* | Added Coveralls status badgeWaylan Limberg2014-07-111-0/+1
| |
* | Marked a bunch of lines as 'no cover'. Coverage at 91%Waylan Limberg2014-07-1112-31/+32
| |
* | Add tests of markdown.extensions.ExtensionWaylan Limberg2014-07-111-0/+23
| |
* | Better coverage config. Now at 88% coverage.Waylan Limberg2014-07-112-1/+3
|/
* 100% test coverage of admonitionsWaylan Limberg2014-07-103-0/+4
|
* Minor update to .coveragercWaylan Limberg2014-07-101-0/+2
|
* Merge branch 'master' of github.com:waylan/Python-MarkdownWaylan Limberg2014-07-1015-60/+89
|\
| * Merge pull request #319 from mitya57/masterWaylan Limberg2014-06-195-12/+30
| |\ | | | | | | smarty: add support for angled quotes
| | * smarty: add support for angled quotesDmitry Shachnev2014-06-195-12/+30
| |/ | | | | | | See <http://en.wikipedia.org/wiki/Guillemet>.
| * Merge pull request #317 from mitya57/doctestsWaylan Limberg2014-06-169-38/+39
| |\ | | | | | | Python 3.4 and fixes for doctests
| | * Make doctests support Python 3Dmitry Shachnev2014-06-117-33/+33
| | |
| | * Add 3.4 to list of Python versions to test withDmitry Shachnev2014-06-112-1/+2
| | |
| | * Fix a doctest in fenced_code.py.Andrey Rahmatullin2014-05-311-4/+4
| | |