Skip to content
This repository has been archived by the owner on Jun 23, 2020. It is now read-only.

Support for interactive Plotly figures when possible #5

Open
LaurentRDC opened this issue Nov 6, 2019 · 0 comments
Open

Support for interactive Plotly figures when possible #5

LaurentRDC opened this issue Nov 6, 2019 · 0 comments

Comments

@LaurentRDC
Copy link
Owner

LaurentRDC commented Nov 6, 2019

Based on a comment in #4 :

Pandoc filters only work on the intermediate document representation.

As I see here, getting the output format it possible (I am not sure, because I don't know Haskell)

The idea is to support interactive Plotly plots (via HTML), but fall back to static images when the output format is not HTML, (e.g. PDF)

From Pandoc toJSONFilter documentation:

An alternative is to use the type Maybe Format -> a -> a. This is appropriate when the first argument of the script (if present) will be the target format, and allows scripts to behave differently depending on the target format. The pandoc executable automatically provides the target format as argument when scripts are called using the --filter option.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant