from __future__ import annotations import re from html import escape ACTOR_PLACEHOLDER_RE = re.compile(r"\{\{\s*actor\s*:\s*([a-z0-9_\-]+)\s*\}\}", re.IGNORECASE) PLAIN_LINK_RE = re.compile(r"(?P