From 0abce6296b6d29bb147ff30ed8dfabe125011b13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro=20Mond=C3=A9jar=20Rubio?= Date: Sat, 1 Jun 2024 23:08:21 +0200 Subject: [PATCH] Change substitions order of directives (#211) --- pyproject.toml | 2 +- src/mkdocs_include_markdown_plugin/event.py | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 573a040..f0ba866 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "mkdocs-include-markdown-plugin" -version = "6.1.0" +version = "6.1.1" description = "Mkdocs Markdown includer plugin." readme = "README.md" license = "Apache-2.0" diff --git a/src/mkdocs_include_markdown_plugin/event.py b/src/mkdocs_include_markdown_plugin/event.py index d284ac1..0798956 100644 --- a/src/mkdocs_include_markdown_plugin/event.py +++ b/src/mkdocs_include_markdown_plugin/event.py @@ -624,12 +624,12 @@ def found_include_markdown_tag( # noqa: PLR0912, PLR0915 return text_to_include - markdown = tags['include'].sub( - found_include_tag, + markdown = tags['include-markdown'].sub( + found_include_markdown_tag, markdown, ) - return tags['include-markdown'].sub( - found_include_markdown_tag, + return tags['include'].sub( + found_include_tag, markdown, )