Skip to content

Commit 533865f

Browse files
authored
Merge branch 'master' into markdown-renderer-docs
2 parents ca5e112 + c9f6856 commit 533865f

33 files changed

+43
-57
lines changed

.github/dependabot.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for all configuration options:
4+
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5+
6+
version: 2
7+
updates:
8+
- package-ecosystem: github-actions
9+
directory: /
10+
commit-message:
11+
prefix: ⬆️
12+
schedule:
13+
interval: weekly
14+
- package-ecosystem: pip
15+
directory: /
16+
commit-message:
17+
prefix: ⬆️
18+
schedule:
19+
interval: weekly

.github/workflows/benchmark.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ jobs:
1212
- uses: actions/checkout@v2
1313

1414
- name: Set up Python 3.8
15-
uses: actions/setup-python@v2
15+
uses: actions/setup-python@v4
1616
with:
1717
python-version: 3.8
1818

1919
- name: install pandoc
20-
uses: r-lib/actions/setup-pandoc@v1
20+
uses: r-lib/actions/setup-pandoc@v2
2121
with:
2222
pandoc-version: '2.6'
2323

.github/workflows/tests.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ jobs:
2121
steps:
2222
- uses: actions/checkout@v2
2323
- name: Set up Python 3.8
24-
uses: actions/setup-python@v2
24+
uses: actions/setup-python@v4
2525
with:
2626
python-version: '3.8'
27-
- uses: pre-commit/action@v2.0.0
27+
- uses: pre-commit/action@v3.0.0
2828

2929
tests:
3030

@@ -36,7 +36,7 @@ jobs:
3636
steps:
3737
- uses: actions/checkout@v2
3838
- name: Set up Python ${{ matrix.python-version }}
39-
uses: actions/setup-python@v2
39+
uses: actions/setup-python@v4
4040
with:
4141
python-version: ${{ matrix.python-version }}
4242
- name: Install dependencies
@@ -48,7 +48,7 @@ jobs:
4848
pytest tests/ --cov=markdown_it --cov-report=xml --cov-report=term-missing
4949
- name: Upload to Codecov
5050
if: matrix.python-version == '3.7' && github.repository == 'executablebooks/markdown-it-py'
51-
uses: codecov/codecov-action@v1
51+
uses: codecov/codecov-action@v3
5252
with:
5353
name: markdown-it-py-pytests-py3.7
5454
flags: pytests
@@ -64,7 +64,7 @@ jobs:
6464
steps:
6565
- uses: actions/checkout@v2
6666
- name: Set up Python ${{ matrix.python-version }}
67-
uses: actions/setup-python@v2
67+
uses: actions/setup-python@v4
6868
with:
6969
python-version: ${{ matrix.python-version }}
7070
- name: Install markdown-it-py
@@ -85,7 +85,7 @@ jobs:
8585
- uses: actions/checkout@v2
8686

8787
- name: Set up Python 3.8
88-
uses: actions/setup-python@v2
88+
uses: actions/setup-python@v4
8989
with:
9090
python-version: '3.8'
9191

@@ -98,7 +98,7 @@ jobs:
9898
run: tox -e py38-bench-core -- --benchmark-json bench-core.json
9999

100100
- name: Upload data
101-
uses: actions/upload-artifact@v2
101+
uses: actions/upload-artifact@v3
102102
with:
103103
name: bench-core
104104
path: bench-core.json
@@ -114,7 +114,7 @@ jobs:
114114
- name: Checkout source
115115
uses: actions/checkout@v2
116116
- name: Set up Python 3.8
117-
uses: actions/setup-python@v2
117+
uses: actions/setup-python@v4
118118
with:
119119
python-version: '3.8'
120120
- name: install flit

.pre-commit-config.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,31 +16,31 @@ exclude: >
1616
repos:
1717

1818
- repo: https://github.com/pre-commit/pre-commit-hooks
19-
rev: v4.3.0
19+
rev: v4.4.0
2020
hooks:
2121
- id: check-json
2222
- id: check-yaml
2323
- id: end-of-file-fixer
2424
- id: trailing-whitespace
2525

2626
- repo: https://github.com/pycqa/isort
27-
rev: 5.10.1
27+
rev: 5.12.0
2828
hooks:
2929
- id: isort
3030

3131
- repo: https://github.com/psf/black
32-
rev: 22.6.0
32+
rev: 23.1.0
3333
hooks:
3434
- id: black
3535

3636
- repo: https://github.com/PyCQA/flake8
37-
rev: 5.0.2
37+
rev: 6.0.0
3838
hooks:
3939
- id: flake8
4040
additional_dependencies: [flake8-bugbear~=22.7]
4141

4242
- repo: https://github.com/pre-commit/mirrors-mypy
43-
rev: v0.971
43+
rev: v1.0.1
4444
hooks:
4545
- id: mypy
4646
additional_dependencies: [mdurl]

docs/using.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ md = MarkdownIt("commonmark", renderer_cls=MyRenderer)
330330
md.render("*a*")
331331
```
332332

333-
Plugins can support multiple render types, using the `__ouput__` attribute (this is currently a Python only feature).
333+
Plugins can support multiple render types, using the `__output__` attribute (this is currently a Python only feature).
334334

335335
```{code-cell} python
336336
from markdown_it.renderer import RendererHTML

markdown_it/common/utils.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ def arrayReplaceAt(src: list, pos: int, newElements: list) -> list:
5656

5757

5858
def isValidEntityCode(c: int) -> bool:
59-
6059
# broken sequence
6160
if c >= 0xD800 and c <= 0xDFFF:
6261
return False

markdown_it/helpers/parse_link_label.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99

1010

1111
def parseLinkLabel(state: StateInline, start: int, disableNested: bool = False) -> int:
12-
1312
labelEnd = -1
1413
oldPos = state.pos
1514
found = False

markdown_it/renderer.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class Renderer
1818
try:
1919
from typing import Protocol
2020
except ImportError: # Python <3.8 doesn't have `Protocol` in the stdlib
21-
from typing_extensions import Protocol # type: ignore[misc]
21+
from typing_extensions import Protocol # type: ignore
2222

2323

2424
class RendererProtocol(Protocol):
@@ -82,7 +82,6 @@ def render(
8282
result = ""
8383

8484
for i, token in enumerate(tokens):
85-
8685
if token.type == "inline":
8786
assert token.children is not None
8887
result += self.renderInline(token.children, options, env)

markdown_it/rules_block/blockquote.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010

1111

1212
def blockquote(state: StateBlock, startLine: int, endLine: int, silent: bool):
13-
1413
LOGGER.debug(
1514
"entering blockquote: %s, %s, %s, %s", state, startLine, endLine, silent
1615
)
@@ -129,7 +128,6 @@ def blockquote(state: StateBlock, startLine: int, endLine: int, silent: bool):
129128
# for (nextLine = startLine + 1; nextLine < endLine; nextLine++) {
130129
nextLine = startLine + 1
131130
while nextLine < endLine:
132-
133131
# check if it's outdented, i.e. it's inside list item and indented
134132
# less than said list item:
135133
#

markdown_it/rules_block/code.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88

99
def code(state: StateBlock, startLine: int, endLine: int, silent: bool = False):
10-
1110
LOGGER.debug("entering code: %s, %s, %s, %s", state, startLine, endLine, silent)
1211

1312
if state.sCount[startLine] - state.blkIndent < 4:

0 commit comments

Comments
 (0)