summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Round out tests of valid markup.htmlWaylan Limberg2019-03-111-2/+232
| | | | There are some design desisions to make as noted in comments.
* More tests.Waylan Limberg2019-03-082-1/+228
|
* Add some new testsWaylan Limberg2019-03-071-0/+310
|
* Disable markdown=1 in extra for now.Waylan Limberg2019-03-071-7/+7
|
* fix silly errorWaylan Limberg2019-03-071-1/+1
|
* Refactor HTML ParserWaylan Limberg2019-03-073-266/+109
| | | | | | This is experimental. More of the HTMLParser methods need to be fleshed out. So far the basic stuff works as long as there is no invalid HTML in the document.
* Optimize several regexes from quadratic time to linear timeAnders Kaseorg2019-03-062-6/+6
| | | | | | Part of the discussion in #798. Signed-off-by: Anders Kaseorg <andersk@mit.edu>
* Remove references to mailing list.Waylan Limberg2019-03-043-9/+4
| | | | Fixes #793.
* Drop Python3.4 Support (#796)Waylan Limberg2019-03-044-10/+6
| | | Python is dropping support for PY3.4 on 2019-03-16. Therefore we are dropping support as well. See #760.
* Add support for a range to toc_depth.Klaus Mueller2019-02-224-10/+85
| | | | Closes #786.
* Handle overlapping raw HTML matches (#770)Philip Trauner2019-02-073-3/+62
| | | | | Recursively run substitution to handle overlapping matches. Fixes #458.
* Add `whitespace` to spelling dictionaryWaylan Limberg2019-02-071-0/+1
| | | In computing, `whitespace` is a word. See https://en.wikipedia.org/wiki/Whitespace_character.
* Emphasis pattern treats newlines as whitespace (#785)Waylan Limberg2019-02-073-1/+88
| | | | | | All whitespace characters should be treated the same by inline patterns. Previoulsy, emphasis patterns were only accounting for spaces, but not other whitepsace characters such as newlines. Fixes #783.
* Document "process" label.Waylan Limberg2019-01-231-0/+4
| | | Document a new label type for issues and PR which include discussions regarding policies and development process. See #760 for an example.
* Allow hashes to be escaped in headers (#763)Isaac Muse2018-12-223-1/+22
| | | | | Adjust pattern to allow for escaped hashes, but take care to not treat escaped escapes before hashes as escaped hashes. Close #762.
* Use a PEP562 implementation for deprecating attributes (#757)Isaac Muse2018-12-226-61/+271
| | | Use a vendored Pep562 backport to simulate Python 3.7's new PEP 562 feature. For Python3.7 and later, default to the official implementation.
* Fix typos in tests namesDmitry Shachnev2018-12-191-3/+3
|
* Clarify in docs that a high value corresponds to high extension priority (#756)Maurice van der Pot2018-11-181-2/+3
| | | This fixes #755
* Improve CI / testing (#754)Daniel Hahler2018-11-154-18/+21
| | | | | | | | | | | | | | | | | | | | * Use "testing" extras_require This centralized testing requirements and allows for `pip install -e .[testing]` etc. pytidylib is kept separate according to https://github.com/Python-Markdown/markdown/pull/754/files#r233561159. * Travis: simplify installation of deps * Travis: use xenial by default, trusty for py34 * Travis: codecov: use flags * Travis: only install aspell for checkspelling job * Remove coverage version restriction
* add: use stacklevel=2 with warningDaniel Hahler2018-11-141-3/+9
|
* Document third-party apps offer alternate list behaviorSimon Lydell2018-11-061-1/+3
|
* Collapse all whitespace in reference ids (#743)Isaac Muse2018-10-303-1/+39
| | | Previously only newlines preceded by whitespace were collapsed. Fixes #742.
* Create 3.1 release notes.Waylan Limberg2018-10-254-6/+47
|
* Deprecate version and version_info (#740)Isaac Muse2018-10-254-5/+114
| | | | This essentially implements the closest we can get to PEP 562 which allows for modules to control `__dir__` and `__getattr__` in order to deprecate attributes. Here we provide a wrapper class for the module in `util`. If a module has attributes that need to deprecated, we derive from the wrapper class and define the attributes as functions with the `property` decorator and the provided `deprecated` decorator. The class is instantiated with the module's `__name__` attribute and the class will properly replace the module with the wrapped module. When accessing the depracted attributes, a warning is raised. Closes #739.
* Add contributing guide. (#732)Waylan Limberg2018-10-253-0/+554
|
* Auto-include version in docs.Waylan Limberg2018-10-211-1/+1
| | | | | Its too easy to forget to update the Markdown version manually in the docs config. This ensures it is included automatically.
* pyproject.toml: Bump minimal setuptools version to 36.6Dmitry Shachnev2018-10-211-1/+1
| | | | This is the version where setuptools.build_meta was introduced.
* Up version to 3.1.dev0 (#736)Waylan Limberg2018-10-215-19/+34
| | | | | | | | Update version format to be PEP 440 compliant in preparation for #732. Add `pyproject.toml` file and configure tox to use it. Define requirement for `setuptools>=36` which validates and normalizes the version format.
* Fixed typo.Marios Zindilis2018-10-141-1/+1
|
* Ensure block elements are defined per instancefacelessuser2018-10-092-12/+24
| | | | Block level elements should be defined per instance, not as base class variables.
* foot note adjustments (#728)Isaac Muse2018-10-0911-2463/+2505
| | | | | | Add a config to set the footnote separator. Also remove rel/rev as they aren't really compatible with HTML5 and we already have classes set for refs and backrefs. Fixes 723.
* Fix double escaping of block code (#727)Isaac Muse2018-10-072-1/+100
| | | | | Fixes #725
* Bump version to 3.0.13.0.1Waylan Limberg2018-09-263-2/+7
|
* Support version_info for backward compat.Waylan Limberg2018-09-261-0/+1
| | | | Related to #709.
* Add a test for the markdown/serializers.py changeDmitry Shachnev2018-09-251-0/+4
|
* Also update RE_AMP in serializers.pyDmitry Shachnev2018-09-251-1/+1
|
* Make ENTITY_RE support hexadecimal entitiesissue712Dmitry Shachnev2018-09-252-2/+46
| | | | Fixes #712.
* Bring back the old version variable (#709)Filipp Lepalaan2018-09-221-0/+3
| | | | ... for backward compatibility with older (<3.0) versions.
* 3.0 cleanupWaylan Limberg2018-09-212-1/+2
|
* Bump version to 3.03.0Waylan Limberg2018-09-212-2/+2
|
* Support custom labels in TOC. (#700)Waylan Limberg2018-09-054-12/+108
| | | | | | | | New `toc_tokens` attribute on Markdown class. Contains the raw tokens used to build the Table of Contents. Users can use this to build their own custom Table of Contents rather than needing to parse the HTML available on the `toc` attribute of the Markdown class.
* Proper Python gitignoreWaylan Limberg2018-08-291-17/+69
|
* Update for MkDocs 1.0.Waylan Limberg2018-08-033-3/+3
|
* Update 3.0 release notesWaylan Limberg2018-08-0319-191/+431
| | | | And other docs cleanup.
* Move isBlockLevel to class. (#693)Waylan Limberg2018-07-317-31/+51
| | | | | Allows users and/or extensions to alter the list of block level elements. The old implementation remains with a DeprecationWarning. Fixes #575.
* Deprecate md_globals from extension API. (#697)Waylan Limberg2018-07-3120-21/+37
| | | | | | In the past, most of the config was defined using globals. Today all of the config is held on the class instance. Therefore, the `md_globals` parameter is no longer necessary.
* Refactor options testsWaylan Limberg2018-07-314-10/+12
|
* smart_emphasis keyword > legacy_em extension.Waylan Limberg2018-07-3113-66/+84
| | | | | | | | | The smart_strong extension has been removed and its behavior is now the default (smart em and smart strong are the default). The legacy_em extension restores legacy behavior (no smart em or smart strong). This completes the removal of keywords. All parser behavior is now modified by extensions, not by keywords on the Markdown class.
* Remove lazy_ol keyword. Use sane_lists extension instead.Waylan Limberg2018-07-318-41/+26
| | | | This was adapted from 11408e50 of the md3 branch.
* Removed unnessecary no attributes test. (#694)Waylan Limberg2018-07-313-7/+0
| | | This was missed in #683.