summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorWaylan Limberg <waylan.limberg@icloud.com>2020-06-23 16:04:31 -0400
committerGitHub <noreply@github.com>2020-06-23 16:04:31 -0400
commit10058fae6577e79b786f4e185218aebb1b53e937 (patch)
treee57b70fa1f83d89bd9e8db31bc1ab18f4f91ddf2 /.github
parentdbb9b3d766e847f1909fa0c92c6b997f0e7c868d (diff)
downloadpython-markdown-10058fae6577e79b786f4e185218aebb1b53e937.tar.gz
Refactor fenced_code & codehilite options (#816)
* Add `language-` prefix to output when syntax highlighting is disabled for both codehilite and fenced_code extensions. * Add `lang_prefix` config option to customize the prefix. * Add a 'pygments' env to tox which runs the tests with Pygments installed. Pygments is locked to a specific version in the env. * Updated codehilite to accept any Pygments options. * Refactor fenced code attributes. - ID attr is defined on `pre` tag. - Add support for attr_list extension, which allows setting arbitrary attributes. - When syntax highlighting is enabled, any pygments options can be defined per block in the attr list. - For backward compatibility, continue to support `hi_lines` outside of an attr_list. That is the only attr other than lang which is allowed without the brackets (`{}`) of an attr list. Note that if the brackets exist, then everything, including lang and hl_lines, must be within them. * Resolves #775. Resolves #334. Addresses #652.
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/tox.yml4
1 files changed, 3 insertions, 1 deletions
diff --git a/.github/workflows/tox.yml b/.github/workflows/tox.yml
index 1c19989..2439378 100644
--- a/.github/workflows/tox.yml
+++ b/.github/workflows/tox.yml
@@ -20,7 +20,7 @@ jobs:
fail-fast: false
max-parallel: 4
matrix:
- tox-env: [py35, py36, py37, py38, pypy3]
+ tox-env: [py35, py36, py37, py38, pypy3, pygments]
include:
- tox-env: py35
python-version: 3.5
@@ -32,6 +32,8 @@ jobs:
python-version: 3.8
- tox-env: pypy3
python-version: pypy3
+ - tox-env: pygments
+ python-version: 3.7
env:
TOXENV: ${{ matrix.tox-env }}