mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-31 01:35:00 +00:00
use html source if pandoc NOT available
This commit is contained in:
parent
88214f963b
commit
c076c134ac
1 changed files with 1 additions and 1 deletions
|
@ -174,7 +174,7 @@ class Scraper:
|
||||||
soup = slimdown_html(soup)
|
soup = slimdown_html(soup)
|
||||||
page_source = str(soup)
|
page_source = str(soup)
|
||||||
|
|
||||||
if self.pandoc_available:
|
if not self.pandoc_available:
|
||||||
return page_source
|
return page_source
|
||||||
|
|
||||||
md = pypandoc.convert_text(page_source, "markdown", format="html")
|
md = pypandoc.convert_text(page_source, "markdown", format="html")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue