Skip to content

Commit c112fcc

Browse files
authored
Merge branch 'master' into mdformat-myst
2 parents 93fe9a3 + 53d9b33 commit c112fcc

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+113
-6144
lines changed

.github/workflows/benchmark.yml

-42
Original file line numberDiff line numberDiff line change
@@ -46,45 +46,3 @@ jobs:
4646
commit-msg-append: "[ci skip]"
4747
one-chart-groups: packages,plugins
4848
fail-on-alert: false
49-
50-
benchmark-plugins:
51-
52-
runs-on: ubuntu-latest
53-
steps:
54-
- uses: actions/checkout@v2
55-
56-
- name: Set up Python 3.8
57-
uses: actions/setup-python@v2
58-
with:
59-
python-version: 3.8
60-
61-
- name: Install tox
62-
run: |
63-
python -m pip install --upgrade pip
64-
pip install tox
65-
66-
- name: Run plugin benchmarks
67-
run: tox -e py38-bench-plugins -- --benchmark-min-rounds 20 --benchmark-json bench-plugins.json
68-
69-
# - name: Upload plugin data
70-
# uses: actions/upload-artifact@v2
71-
# with:
72-
# name: bench-plugins
73-
# path: bench-plugins.json
74-
# if-no-files-found: error
75-
76-
- name: Store benchmark result
77-
uses: chrisjsewell/github-action-benchmark@v2
78-
with:
79-
name: Parsing Benchmarks
80-
output-file-path: bench-plugins.json
81-
# Use personal access token instead of GITHUB_TOKEN due to https://github.saobby.my.eu.orgmunity/t5/GitHub-Actions/Github-action-not-triggering-gh-pages-upon-push/td-p/26869/highlight/false
82-
github-token: ${{ secrets.GITHUB_TOKEN }}
83-
auto-push: true
84-
commit-msg-append: "[ci skip]"
85-
one-chart-groups: packages,plugins
86-
# Show alert with commit comment on detecting possible performance regression
87-
alert-threshold: '200%'
88-
comment-on-alert: true
89-
fail-on-alert: false
90-
alert-comment-cc-users: '@chrisjsewell'

.github/workflows/tests.yml

+25
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ on:
99
tags:
1010
- 'v*'
1111
pull_request:
12+
schedule:
13+
- cron: '0 0 * * 0' # every week
1214

1315
jobs:
1416

@@ -53,6 +55,29 @@ jobs:
5355
file: ./coverage.xml
5456
fail_ci_if_error: true
5557

58+
test-plugins:
59+
60+
runs-on: ubuntu-latest
61+
strategy:
62+
matrix:
63+
python-version: [3.8]
64+
steps:
65+
- uses: actions/checkout@v2
66+
- name: Set up Python ${{ matrix.python-version }}
67+
uses: actions/setup-python@v2
68+
with:
69+
python-version: ${{ matrix.python-version }}
70+
- name: Install markdown-it-py
71+
run: |
72+
python -m pip install --upgrade pip
73+
pip install .[testing]
74+
- name: clone and install mdit-py-plugins
75+
run: |
76+
git clone https://github.com/executablebooks/mdit-py-plugins.git
77+
pip install --no-deps -e mdit-py-plugins
78+
- name: Run pytest for unit tests of mdit-py-plugins
79+
run: cd mdit-py-plugins; pytest
80+
5681
benchmark:
5782

5883
runs-on: ubuntu-latest

.pre-commit-config.yaml

+13-9
Original file line numberDiff line numberDiff line change
@@ -23,36 +23,40 @@ repos:
2323
additional_dependencies: [mdformat-myst==0.1.2]
2424

2525
- repo: https://github.com/pre-commit/pre-commit-hooks
26-
rev: v3.3.0
26+
rev: v3.4.0
2727
hooks:
2828
- id: check-json
2929
- id: check-yaml
3030
- id: end-of-file-fixer
3131
- id: trailing-whitespace
3232

3333
- repo: https://github.com/mgedmin/check-manifest
34-
rev: "0.44"
34+
rev: "0.46"
3535
hooks:
3636
- id: check-manifest
37+
args: [--no-build-isolation]
38+
additional_dependencies: [setuptools>=46.4.0]
39+
40+
# this is not used for now,
41+
# since it converts markdown-it-py to markdown_it_py and removes comments
42+
# - repo: https://github.com/asottile/setup-cfg-fmt
43+
# rev: v1.17.0
44+
# hooks:
45+
# - id: setup-cfg-fmt
3746

3847
- repo: https://github.com/psf/black
3948
rev: 20.8b1
4049
hooks:
4150
- id: black
4251

4352
- repo: https://gitlab.com/pycqa/flake8
44-
rev: 3.8.4
53+
rev: 3.9.1
4554
hooks:
4655
- id: flake8
4756
additional_dependencies: [flake8-bugbear==21.3.1]
4857

4958
- repo: https://github.com/pre-commit/mirrors-mypy
50-
rev: v0.790
59+
rev: v0.812
5160
hooks:
5261
- id: mypy
5362
additional_dependencies: [attrs]
54-
55-
- repo: https://github.com/asottile/setup-cfg-fmt
56-
rev: v1.16.0
57-
hooks:
58-
- id: setup-cfg-fmt

.readthedocs.yml

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ python:
77
path: .
88
extra_requirements:
99
- linkify
10+
- plugins
1011
- rtd
1112

1213
sphinx:

CHANGELOG.md

+10-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
# Change Log
22

3+
## 1.0.0b2 - 2021-04-25
4+
5+
‼️ BREAKING: Move `mdit-py-plugins` out of the core install requirements and into a `plugins` extra.
6+
7+
Synchronised code with the upstream Markdown-It `v12.0.6`:
8+
9+
- 🐛 FIX: Raise HTML blocks priority to resolve conflict with headings
10+
- 🐛 FIX: Newline not rendered in image alt attribute
11+
312
## 1.0.0b1 - 2021-03-31
413

514
[Full commit log](https://github.com/executablebooks/markdown-it-py/compare/v0.6.2...9ecda04)
@@ -8,7 +17,7 @@ This is the first beta release of the stable v1.x series.
817

918
There are four notable (and breaking) changes:
1019

11-
1. The code has been synchronised with the upstream Markdown-It v12.0.4.
20+
1. The code has been synchronised with the upstream Markdown-It `v12.0.4`.
1221
In particular, this update alters the parsing of tables to be consistent with the GFM specification: <https://github.github.com/gfm/#tables-extension->
1322
A number of parsing performance and validation improvements are also included.
1423
2. `Token.attrs` are now stored as dictionaries, rather than a list of lists.

README.md

+8-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,14 @@ conda install -c conda-forge markdown-it-py
3232
or
3333

3434
```bash
35-
pip install markdown-it-py
35+
pip install markdown-it-py[plugins]
36+
```
37+
38+
or with extras
39+
40+
```bash
41+
conda install -c conda-forge markdown-it-py linkify-it-py mdit-py-plugins
42+
pip install markdown-it-py[linkify,plugins]
3643
```
3744

3845
## Usage

benchmarking/bench_plugins.py

-76
This file was deleted.

docs/conf.py

+1
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
("py:class", "markdown_it.helpers.parse_link_destination._Result"),
5252
("py:class", "markdown_it.helpers.parse_link_title._Result"),
5353
("py:class", "MarkdownIt"),
54+
("py:class", "_NodeType"),
5455
]
5556

5657

markdown_it/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
from .main import MarkdownIt # noqa: F401
22

33

4-
__version__ = "1.0.0b1"
4+
__version__ = "1.0.0b2"

markdown_it/extensions/__init__.py

Whitespace-only changes.

markdown_it/extensions/amsmath.py

-9
This file was deleted.

markdown_it/extensions/anchors.py

-9
This file was deleted.

markdown_it/extensions/colon_fence.py

-9
This file was deleted.

markdown_it/extensions/container.py

-9
This file was deleted.

markdown_it/extensions/deflist.py

-9
This file was deleted.

markdown_it/extensions/dollarmath.py

-9
This file was deleted.

markdown_it/extensions/footnote.py

-9
This file was deleted.

markdown_it/extensions/front_matter.py

-9
This file was deleted.

markdown_it/extensions/myst_blocks.py

-9
This file was deleted.

markdown_it/extensions/myst_role.py

-9
This file was deleted.

markdown_it/extensions/tasklists.py

-9
This file was deleted.

markdown_it/extensions/texmath.py

-9
This file was deleted.

0 commit comments

Comments
 (0)