From 71f4ca8a2c9c524373ba3e16e6178ddd26c46f3e Mon Sep 17 00:00:00 2001 From: Roman Timashev Date: Sat, 29 Feb 2020 00:57:08 +0300 Subject: [PATCH] rm unused functions from Marker --- modules/sync/kazimir/Marker.py | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/modules/sync/kazimir/Marker.py b/modules/sync/kazimir/Marker.py index ddf21502..cad715f6 100644 --- a/modules/sync/kazimir/Marker.py +++ b/modules/sync/kazimir/Marker.py @@ -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 + +