Skip to content

Commit

Permalink
Allows webpdf to be rendered with templates (#1601)
Browse files Browse the repository at this point in the history
  • Loading branch information
marimeireles committed Aug 23, 2021
1 parent 14e3ab6 commit 622ca5a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nbconvert/exporters/webpdf.py
Expand Up @@ -37,11 +37,11 @@ class WebPDFExporter(HTMLExporter):
"""
).tag(config=True)

output_mimetype = "application/pdf"
output_mimetype = "text/html"

@default('file_extension')
def _file_extension_default(self):
return '.pdf'
return '.html'

@default('template_name')
def _template_name_default(self):
Expand Down

0 comments on commit 622ca5a

Please sign in to comment.