alexandre-perrin / mkdocs-pandoc-plugin

The plugin is based on mkdocs-mk2pdf-plugin and aims to use pandoc as a generic engine to convert to many document format that pandoc suports.
https://github.com/HaoLiuHust/mkdocs-mk2pdf-plugin
MIT License
6 stars 4 forks source link

pdf generated as .pdf.md and attempting to convert pdfs #9

Open mfoulds opened 1 year ago

mfoulds commented 1 year ago

Hi - I've noticed two problems when running mkdocs build:

  1. Combined pdf is a markdown file called combined.pdf.md
  2. Attempts to convert from pdf files instead of to pdf

Can you suggest anything to fix?

Combined markdown instead of pdf

When I set combined=true, the resulting combined file from mkdocs build is a markdown file that combines all other files, instead of a pdf.

Settings are as below:

plugins:
  - search
  - pandoc:          # requires mkdocs-pandoc-plugin
      # enabled_if_env: ENABLE_PANDOC_EXPORT
      combined: true

Attempts to convert from pdf

There are repeated errors in the terminal like this:

Unknown input format pdf
Pandoc can convert to PDF, but not from PDF.

With combined=true then the combined file is created as a markdown (as above).

If I set combined=false, then no pdf files are created in the subdirectories of mkdocs_site/pandoc.