Replies: 3 comments
-
Hello @noamross.
What type of data are we talking about? Pandoc support convert images to base64. For example, When writing, I use
but, for the final document, I use
It is faster to update the HTML without the base64 images but the base64 images help when sharing the document over email as I don't need to zip all the files together. |
Beta Was this translation helpful? Give feedback.
-
Thanks, @rgaiacs. I actually speaking of a different set of features. |
Beta Was this translation helpful? Give feedback.
-
Hi @noamross, there are actually two answers to this question: (1) We didn't implement pre and post processing hooks yet mostly because we wanted to fully understand the use cases / requirements (i.e. raw content processing, file system side effects, synthesizing metadata, etc.) so we could create the right API. I was actually planning on reaching out to you to discuss further as I know you've probably done more than almost anyone with these hooks in R Markdown. Ping me over email and we can setup a time to talk realtime. (2) We have attempted to create common implementations for many of the common operations of pre and post-processing hooks (e.g. Look forward to talking and getting this API right! One other thing to address: we are biasing in favor of having extensions/formats written in a runtime guaranteed to be available for all users of Quarto (which implies either Lua or Typescript). If we start having people use R and Python they will then also have package dependencies (likely with version sensitivities) which will make it exceedingly difficult to create extensions that can be successfully installed by the majority of users. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
What is the scope or timeline for pre- and post-process hooks for developers to create complex formats that require more than templates and lua filters? Some existing examples of this in the R Markdown include capturing and including source data as base64-encoded data in the final document, or more complex MS Word and Powerpoint formats that implement features not in Pandoc's data model. Both of these uses pre-parse and capture information from the document to store as knitr metadata or sidecar files, then use that data to insert into the document before or after passing through Pandoc. Is this functionality expected in Quarto? Would pre- or post-processors need to be implemented in Typescript or would they be able to use the developer's language of choice?
Understanding this would help me decide whether to continue to develop on top of R Markdown for some use-cases or start porting existing work to Quarto.
Beta Was this translation helpful? Give feedback.
All reactions