Skip to content

Commit c4130b7

Browse files
committed
release: v2.0.0
1 parent 14c367f commit c4130b7

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# `mdformat-admon`
1+
# mdformat-admon
22

33
[![Build Status][ci-badge]][ci-link] [![PyPI version][pypi-badge]][pypi-link]
44

@@ -41,7 +41,7 @@ from markdown_it import MarkdownIt
4141
from mdformat_admon.plugins import python_markdown_admon_plugin
4242

4343
md = MarkdownIt("commonmark")
44-
md.use(plugin)
44+
md.use(python_markdown_admon_plugin)
4545

4646
text = '!!! note ""\n *content*'
4747
md.render(text)

mdformat_admon/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""An mdformat plugin for admonitions."""
22

3-
__version__ = "2.0.0rc1"
3+
__version__ = "2.0.0"
44

55
from .plugin import RENDERERS, update_mdit

mdformat_admon/factories/_factories.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ def default_render(
187187
env: EnvType,
188188
) -> str:
189189
"""Default render if not specified."""
190-
return self.renderToken(tokens, idx, _options, env) # type: ignore[attr-defined]
190+
return self.renderToken(tokens, idx, _options, env) # type: ignore[attr-defined]
191191

192192

193193
RenderType = Callable[..., str]

tox.ini

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ envlist =
33
py{312}-cov
44
py{312}-pre-commit
55
py{38}-hook
6-
type
7-
format
6+
mypy
7+
ruff
88
isolated_build = True
99
skip_missing_interpreters = False
1010

@@ -24,10 +24,10 @@ commands = pre-commit run {posargs:--all-files}
2424
extras = dev
2525
commands = pre-commit run --config .pre-commit-test.yaml {posargs:--all-files --verbose --show-diff-on-failure}
2626

27-
[testenv:type]
27+
[testenv:mypy]
2828
deps = mypy
2929
commands = mypy ./mdformat_admon
3030

31-
[testenv:format]
31+
[testenv:ruff]
3232
deps = ruff
3333
commands = ruff . --fix

0 commit comments

Comments
 (0)