pelican-plugins / pandoc-reader

Pandoc Reader is a Pelican plugin that processes Markdown content via Pandoc
14 stars 3 forks source link

Speed up processing by calling Pandoc only once #10

Closed nandac closed 3 years ago

nandac commented 3 years ago

This commit reduces the number of calls to Pandoc by using a custom Pandoc HTML template that gets all required content in one go. This speeds up the processing of the Markdown files.

BeautifulSoup is then used to separate out the body HTML content, table of contents (if requested), and Pandoc metadata from the HTML output returned.

justinmayer commented 3 years ago

It seems there might a linting issue: https://github.com/pelican-plugins/pandoc-reader/runs/1482386514?check_suite_focus=true

Did you run invoke lint before pushing your changes? Have you run invoke setup to ensure that Pre-commit is set up? (which can help if you forget to run invoke lint)

nandac commented 3 years ago

@justinmayer I did run invoke lint before committing but did not see this issue at that time. I did not wait around to see the issue in GitHub because the checks were queued for over 45 minutes and still had not run.

Anyway, the issue is fixed now.

justinmayer commented 3 years ago

Yes, I think GitHub Actions had some problems yesterday. Glad to see they are fixed.

Nice work. 👍