def texify(self, html: Tag) -> bytes:
if html.name == 'em':
return b'\\emph{' + self._texify_children(html).strip() + b'}\n'
+ if html.name == 'a' and 'href' in html.attrs:
+ return b'\\href{' + html.attrs['href'].encode(
+ 'UTF-8') + b'}{' + self._texify_children(html).strip() + b'}\n'
return self._texify_children(html)