rm unused functions from Marker

This commit is contained in:
tmshv committed 2020-02-29 00:57:08 +03:00
1 parent 95925cffe5
commit 71f4ca8a2c
1 file changed
+2 -11
+2 -11
View File
@@ -102,17 +102,8 @@ async def compile_tokens(tokens: list):
return '\n'.join(result)
def extract_files(text: str) -> [str]:
html = markdown(text)
post_html = lxml.html.fromstring(html)
images = post_html.cssselect('img')
images = [img.get('src') for img in images]
return images, []
def html_from_tree(tree):
html = lxml.html.tostring(tree, encoding='unicode')
return html