` tags. """ env = {} if env is None else env return self.renderer.render(self.parseInline(src, env), self.options, env) # link methods def validateLink(self, url: str) -> bool: """Validate if the URL link is allowed in output. This validator can prohibit more than really needed to prevent XSS. It's a tradeoff to keep code simple and to be secure by default. Note: the url should be normalized at this point, and existing entities decoded. """ return normalize_url.validateLink(url) def normalizeLink(self, url: str) -> str: """Normalize destination URLs in links :: [label]: destination 'title' ^^^^^^^^^^^ """ return normalize_url.normalizeLink(url) def normalizeLinkText(self, link: str) -> str: """Normalize autolink content :: ~~~~~~~~~~~ """ return normalize_url.normalizeLinkText(link)