def METHOD_NAME(matchobj: Match) -> str:
    """Returns the match inserted into a markup style."""
    groups = matchobj.groupdict()
    name = matchobj.lastgroup
    content = groups.get(str(name), None)
    if self.match_formatter is not None:
        content = self.match_formatter(matchobj, content)
        if content == "":
            return ""
    tag = f"{self.prefix}{name}"
    style = f"[{tag}]{{}}[/{tag}]"
    return style.format(content)