Merge pull request #2 from crhallberg/html-parser

Suppress BeautifulSoup warning
This commit is contained in:
Steven Skoczen
2017-11-13 08:48:45 +13:00
committed by GitHub

View File

@@ -53,7 +53,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):