tools: Add timeout for pandoc.
- Saw pandoc hang.
This commit is contained in:
parent
beb98889ca
commit
fa54f38e40
1 changed files with 2 additions and 1 deletions
|
|
@ -394,7 +394,8 @@ def html_syntax(path):
|
|||
def pandoc(path):
|
||||
with tempfile.TemporaryDirectory() as temp_dir:
|
||||
temp_path = os.path.join(temp_dir, "temp.html")
|
||||
_do_command(["pandoc", "-t", "html", "-o", temp_path, path])
|
||||
_do_command(["pandoc", "-t", "html", "-o", temp_path, path],
|
||||
timeout=TIMEOUT)
|
||||
return elinks(temp_path)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue