reportsrender.run_pandoc

reportsrender.run_pandoc(in_file, out_file, res_path=None, template_file=None, css_file=None)

Convert to HTML using pandoc.

Will create a standalone, self-contained html based on the specified template.

Parameters
  • in_file (str) – path to input file. Can be any format supported by pandoc. The format will be inferred from the file extension.

  • out_file (str) – path to output (html) file.

  • res_path (Optional[Collection[str]]) – List of pandoc resource paths (pandoc will look here for asset files). If no template_file is provided the resource path of the default template will be appended.

  • template_file (Optional[str]) – path to the pandoc template. Per default, the adaptive-bootstrap template shipped with this package will be used.

  • css_file (Optional[str]) – path to the css file used by pandoc. Per default, the css file from the adaptive-bootstrap template shipped with this package will be used.