def parse_repo_url(repo_url: str) -> str:
    """
    Parses repo url and returns it in the form 'https://domain.com/user/repo'

    Args:
        repo_url (str): unformatted repo url

    Returns:
        str: parsed repo url
    """
    repo = repo_url.lstrip("git+") if repo_url.startswith("git+") else repo_url
    repo = repo.rstrip(".git") if repo.endswith(".git") else repo

    if repo.startswith("http"):
        if "gitlab.com" in repo:
            return f"{repo}/-/blob/master/"
        return f"{repo}/blob/master/"
    else:
        repo_data = repo.split(":", 1)
        domain = repo_data[0].split("@")[-1]
        return f"https://{domain}/{repo_data[1]}/blob/master/"