Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pandoc as a content processor #10

Open
jplatte opened this issue Nov 3, 2023 · 2 comments
Open

Pandoc as a content processor #10

jplatte opened this issue Nov 3, 2023 · 2 comments

Comments

@jplatte
Copy link
Owner

jplatte commented Nov 3, 2023

This would allow writing content in a variety of different input languages / flavors of those languages (for instance it supports six different markdown flavors, ignoring one that's deprecated). It would also allow using advanced features that practically only exist inside pandoc such as embedding citations in markdown.

@jplatte jplatte mentioned this issue Nov 3, 2023
@jplatte
Copy link
Owner Author

jplatte commented Nov 3, 2023

I imagine this being a possible input for the process_content frontmatter / defaults field:

[process_content]
with = "pandoc"
from = "latex"
to = "html5" # make this the default?

@jplatte
Copy link
Owner Author

jplatte commented Nov 3, 2023

An alternative would be to run arbitrary commands on the content, so the above would become

process_content = { command = "pandoc --from latex --to html -" }

(assuming that the interface would simply be a text stream, no extra metadata being passed in either direction)

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

No branches or pull requests

1 participant