diff --git a/pyproject.toml b/pyproject.toml index 0be8a05..ea95484 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "website-build-tools" -version = "0.1.10" +version = "0.1.11" description = "tools for building websites, used by defelement.org and quadraturerules.org" readme = "README.md" requires-python = ">=3.8.0" diff --git a/webtools/__init__.py b/webtools/__init__.py index e122254..95e3d21 100644 --- a/webtools/__init__.py +++ b/webtools/__init__.py @@ -1,3 +1,3 @@ """Website building tools.""" -__version__ = "0.1.10" +__version__ = "0.1.11" diff --git a/webtools/markup.py b/webtools/markup.py index a6865e2..d941185 100644 --- a/webtools/markup.py +++ b/webtools/markup.py @@ -425,8 +425,6 @@ def markup(content: str, root_dir: str = "") -> str: out = out.replace("(CODE_OF_CONDUCT.md)", "(code-of-conduct.md)") - out = re.sub(r" *]+)>", add_citation, out) - if settings.insert_links is None: out = insert_links(out, root_dir) else: @@ -438,6 +436,8 @@ def markup(content: str, root_dir: str = "") -> str: for c, d in settings.str_extras: out = out.replace(c, d) + out = re.sub(r" *]+)>", add_citation, out) + out = re.sub(r"`([^`]+)`", r"\1", out) out = re.sub(r"\*\*([^\n]+)\*\*", r"\1", out)