diff --git a/markdownify/__init__.py b/markdownify/__init__.py index 9b44d47..b265cab 100644 --- a/markdownify/__init__.py +++ b/markdownify/__init__.py @@ -52,7 +52,7 @@ class MarkdownConverter(object): # want a full document. Therefore, we'll mark our fragment with an id, # create the document, and extract the element with the id. html = wrapped % html - soup = BeautifulSoup(html) + soup = BeautifulSoup(html, 'html.parser') return self.process_tag(soup.find(id=FRAGMENT_ID), children_only=True) def process_tag(self, node, children_only=False):