diff --git a/shared/jekyll_import.py b/shared/jekyll_import.py index 9ba1f7e435c7869d457ed33be3af332fcb6cfd44..d0d999b5f87796ac140530a84d66aaf4fefe9d2b 100644 --- a/shared/jekyll_import.py +++ b/shared/jekyll_import.py @@ -452,12 +452,6 @@ class JekyllArticleImporter: flags=re.DOTALL, ) - html = re.sub( - "<(?:\"[^\"]*\"['\"]*|'[^']*'['\"]*|[^'\">])+>", - "", - html, - ) - if "{% for" in html: # pro případ, že by byl jenom jeden html = re.sub("{% for(.*?){% endfor %}", "", html, flags=re.DOTALL) @@ -465,12 +459,6 @@ class JekyllArticleImporter: gallery_data_dict = self.handle_fancybox_gallery(article, meta) article.content = json.dumps([text_data_dict, gallery_data_dict]) else: - html = re.sub( - "<(?:\"[^\"]*\"['\"]*|'[^']*'['\"]*|[^'\">])+>", - "", - html, - ) - text_data_dict = {"type": "text", "value": html} article.content = json.dumps([text_data_dict])