def _get_url(self, markdown_file_path: str) -> str:
    url = str(markdown_file_path.relative_to(self.working_dir))
    url_transformation_rules = self.options['url_transform']
    if (not isinstance(url_transformation_rules, list)):
        url_transformation_rules = [url_transformation_rules]
    for url_transformation_rule in url_transformation_rules:
        for (pattern, replacement) in url_transformation_rule.items():
            url = re.sub(pattern, replacement, url)
    return url
def _get_url(self, markdown_file_path: str) -> str:
    url = str(markdown_file_path.relative_to(self.working_dir))
    url_transformation_rules = self.options['url_transform']
    if (not isinstance(url_transformation_rules, list)):
        url_transformation_rules = [url_transformation_rules]
    for url_transformation_rule in url_transformation_rules:
        for (pattern, replacement) in url_transformation_rule.items():
            url = re.sub(pattern, replacement, url)
    return url