summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Bump version to 3.2.13.2.1Waylan Limberg2020-02-122-2/+2
|
* Fix escaping of HTML special chars (<, >, &) in `.toc_tokens`Jim Porter2020-02-123-16/+44
| | | | Fixes #906.
* Bump version to 3.2.1.dev0.Waylan Limberg2020-02-082-1/+3
|
* Bump version to 3.2.0.3.2Waylan Limberg2020-02-063-10/+13
|
* Link test tools and development env documentation.Waylan Limberg2020-02-063-7/+15
| | | Resolves #892.
* Simplify xml.etree.ElementTree loading (#902)Dmitry Shachnev2020-02-0317-143/+131
| | | | | | | | cElementTree is a deprecated alias for ElementTree since Python 3.3. Also drop the recommendation to import etree from markdown.util, and deprecate markdown.util.etree.
* Don't emit stashed HTML tag placeholders in `.toc_tokens` (#901)Jim Porter2020-01-312-28/+87
| | | | | | Note: this slightly changes existing behavior in that raw HTML tags are no longer included in the HTML `.toc`. However, the fact that that worked before was an oversight. The intention was always to strip all markup. Resolves #899.
* Add permalink_title option (#886)Waylan Limberg2019-11-264-7/+43
| | | | | Addes a new `permalink_title` option to the TOC extension, which allows the title attribute of a permalink to be set to something other than the default English string "Permanent link". Fixes #781.
* Add anchorlink_class and permalink_class options to TOCWaylan Limberg2019-11-264-3/+90
| | | | | | | | | Two new configuration options have been added to the toc extension: `anchorlink_class` and `permalink_class` which allows class(es) to be assigned to the `anchorlink` and `permalink` HTML respectively. This allows using icon fonts from CSS for the links. Therefore, an empty string passed to `permalink` now generates an empty `permalink`. Previously no `permalink` would have been generated. Based on #776.
* Remove tox.ini from MANIFESTWaylan Limberg2019-11-261-1/+0
| | | | | | | | Tox has already been removed from `make test` and is no longer recommended for testing in the contributing guide. Additionally, the extra tests it runs (checking the spelling of documentation, etc) are of no value to end users. As things are currently set us, tox is only used on the Travis CI server. Given the above, there is no reason to include it in the release tarball. Closes #808.
* Document thread safety (#882)Waylan Limberg2019-11-253-2/+10
| | | | | Fixed #812.
* Unescape IDs in TOC.Waylan Limberg2019-11-252-1/+42
| | | | | | The slugify function will stript the STX and ETX characters from placeholders for backslash excaped characters. Therefore, we need to unescape any text before passing it to slugify. Fixes #864.
* Show readable error on Python2Waylan Limberg2019-11-251-5/+12
| | | | | | | | | Ensures anyone still using Python 2 gets a readable error message. This does not specify a specific version number to remove the maintenance burden of updating it with each future release. It will likely get removed in the next few releases as it will have served its purpose by then. Fixes #871.
* Bump version to 3.2.dev0.Waylan Limberg2019-11-251-1/+1
| | | | | | As per the Contributing Guide, this should have happened before we commited various 3.2 related changes. In any event, version 3.2 is now officially in development status.
* legacy_attr => legacy_attrs. (#870)NNRepos2019-10-294-6/+6
| | | Fixes #868.
* Add support for Python 3.8 (#867)Hugo van Kemenade2019-10-244-2/+7
| | | Related to #760.
* Drop support for Python 2.7 (#865)Hugo van Kemenade2019-10-2460-255/+132
| | | | | | | * Python syntax upgraded using `pyupgrade --py3-plus` * Travis no longer uses `sudo`. See https://blog.travis-ci.com/2018-11-19-required-linux-infrastructure-migration See #760 for Python Version Support Timeline and related dicussion.
* Always wrap CodeHilite code in <code> tags (#862)Tim Martin2019-09-304-16/+42
| | | Pygments added the `wrapcode` option in version 2.4. Users need to have 2.4+ installed to see the change. However, as earlier versions accepted arbitrary keywords passed to the HTMLFormatter, no error will be raised if the user has an older version of Pygments installed.
* Close code tagOskar Sharipov2019-09-161-0/+1
|
* Document PyPy support in setup.pyjohnthagen2019-09-131-0/+2
|
* Separate Markdown parsing in HTML to separate extension (#859)Isaac Muse2019-09-048-200/+259
| | | | | Move Markdown parsing from the extra extension to a separate extension called md_in_html.
* Refactor em strong to consolidate code and fix issue #792Isaac Muse2019-09-036-17/+279
|
* fix: Typo (#857)Patrick Browne2019-08-311-1/+1
|
* Optimize HTML_RE from quadratic time to linear (#804)Anders Kaseorg2019-08-144-25/+32
| | | | | | Remove misleading escaped_chars_in_js test Signed-off-by: Anders Kaseorg <andersk@mit.edu>
* Added trivial examples to extension docsJamie Scott2019-08-0116-2/+98
| | | | Fixes #854.
* Add a JSON config file example for the CLI docssleepyhollo2019-07-151-1/+15
|
* Update extra.mdMatt Sephton2019-06-251-1/+1
|
* fix(typo): successfullyСаша Черных2019-06-161-1/+1
| | | | | | | | | | | | | ### 1. Summary I fix a typo in a word “successfully”. ### 2. Argumentation + [**Cambridge Dictionary**](https://dictionary.cambridge.org/dictionary/english/successfully) + [**Merriam-Webster**](https://www.merriam-webster.com/dictionary/successful) + [**Lexico (powered by Oxford)**](https://www.lexico.com/en/definition/successfully) Thanks.
* Use more specific asserts throughout testsJon Dufresne2019-06-132-26/+26
| | | | | | | | | | | | | | | | In the event that a test fails, a more specific assert will usually provide more useful information about what went wrong. Prefer assertIs(..., True) over assertTrue() to assert the type as well as the truthy value. This is recommended by Python: https://docs.python.org/3/library/unittest.html#unittest.TestCase.assertTrue > Note that this is equivalent to bool(expr) is True and not to expr is > True (use assertIs(expr, True) for the latter). This method should > also be avoided when more specific methods are available (e.g. > assertEqual(a, b) instead of assertTrue(a == b)), because they provide > a better error message in case of failure.
* Use https:// links where availableJon Dufresne2019-06-1237-74/+74
|
* Update all pypi.python.org URLs to pypi.orgJon Dufresne2019-06-122-2/+2
| | | | | | For details on the new PyPI, see the blog post: https://pythoninsider.blogspot.ca/2018/04/new-pypi-launched-legacy-pypi-shutting.html
* Use skip_install=true for lint targetsJon Dufresne2019-06-121-0/+3
| | | | | | | | | | | | | | | Avoids installing the package (and any potential dependencies) to the virtualenv before running lint or static commands. The package is not required to be installed to do simple static code analysis. Results in a slightly faster run, as fetching and installing dependencies is skipped. For additional information on the configuration option, see: https://tox.readthedocs.io/en/latest/config.html#confval-skip_install=BOOL > Do not install the current package. This can be used when you need the > virtualenv management but do not want to install the current package > into that environment.
* Enable pip cache in Travis CIJon Dufresne2019-06-121-0/+1
| | | | | | | | Reduce load on PyPI servers and slightly speed up builds. For more information, see: https://docs.travis-ci.com/user/caching/#pip-cache
* Bump version to 3.1.13.1.1Waylan Limberg2019-05-202-2/+2
|
* Ensure clean buildsWaylan Limberg2019-05-201-0/+3
| | | | | Not deleting the `build` dir before a new build could result in a dirty build. See pypa/wheel#297.
* Prefer public packaging module to pkg_resources' private copy of it (#826)Dmitry Shachnev2019-05-162-1/+6
| | | | | | Some distributions of `pkg_resources` remove the vendored copy of `packaging. Additionally, the vendored copy is not publicly documented and should not be relied on exclusively. Regardless, if `pkg_resources` is installed at all, then we can be fairly certain one of `packaging` or `pkg_resources._vendor.packaging` will be available. That being the case, there is no need to list `packaging` as a dependency. Fixes #825.
* Comply with PEP517 (#824)Dmitry Shachnev2019-05-156-36/+85
| | | | | | | | Add pep517check environment to tox Split version info into a separate file, load it using importlib Fixes #823.
* Bump version to 3.13.1Waylan Limberg2019-03-252-2/+2
|
* Fix TOC docsWaylan Limberg2019-03-251-7/+7
|
* Update CLI to support PyYAML 5.1Waylan Limberg2019-03-142-3/+12
| | | | | | | This should avoid any warnings. We use `unsafe_load` because users may need to pass in actual Python objects. As this is only available from the CLI, the user has much worse problems if an attacker can use this as an attach vector.
* 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.