| Commit message (Collapse) | Author | Age | Files | Lines |
| | |
|
| |
|
|
| |
Fixes #906.
|
| | |
|
| | |
|
| |
|
| |
Resolves #892.
|
| |
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
| |
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.
|
| |
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
| |
Fixed #812.
|
| |
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
| |
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.
|
| |
|
| |
Fixes #868.
|
| |
|
| |
Related to #760.
|
| |
|
|
|
|
|
| |
* 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.
|
| |
|
| |
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.
|
| | |
|
| | |
|
| |
|
|
|
| |
Move Markdown parsing from the extra extension to a separate
extension called md_in_html.
|
| | |
|
| | |
|
| |
|
|
|
|
| |
Remove misleading escaped_chars_in_js test
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
|
| |
|
|
| |
Fixes #854.
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
### 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.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| | |
|
| |
|
|
|
|
| |
For details on the new PyPI, see the blog post:
https://pythoninsider.blogspot.ca/2018/04/new-pypi-launched-legacy-pypi-shutting.html
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
| |
Reduce load on PyPI servers and slightly speed up builds.
For more information, see:
https://docs.travis-ci.com/user/caching/#pip-cache
|
| | |
|
| |
|
|
|
| |
Not deleting the `build` dir before a new build could result in a dirty
build. See pypa/wheel#297.
|
| |
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
| |
Add pep517check environment to tox
Split version info into a separate file, load it using importlib
Fixes #823.
|
| | |
|
| | |
|
| |
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
| |
Part of the discussion in #798.
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
|
| |
|
|
| |
Fixes #793.
|
| |
|
| |
Python is dropping support for PY3.4 on 2019-03-16. Therefore we are dropping support as well. See #760.
|
| |
|
|
| |
Closes #786.
|
| |
|
|
|
| |
Recursively run substitution to handle overlapping matches.
Fixes #458.
|
| |
|
| |
In computing, `whitespace` is a word. See https://en.wikipedia.org/wiki/Whitespace_character.
|
| |
|
|
|
|
| |
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 a new label type for issues and PR which include discussions regarding policies and development process. See #760 for an example.
|
| |
|
|
|
| |
Adjust pattern to allow for escaped hashes, but take care to not treat
escaped escapes before hashes as escaped hashes. Close #762.
|
| |
|
| |
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.
|