use html source if pandoc NOT available

This commit is contained in:
Paul Gauthier 2024-07-18 10:03:04 +01:00
parent 88214f963b
commit c076c134ac

View file

@ -174,7 +174,7 @@ class Scraper:
soup = slimdown_html(soup)
page_source = str(soup)
if self.pandoc_available:
if not self.pandoc_available:
return page_source
md = pypandoc.convert_text(page_source, "markdown", format="html")