Allow remote files to be included via include-before-* #6854
Unanswered
jbullock35
asked this question in
Q&A
Replies: 2 comments 7 replies
-
The idea with Quarto is really focused on making the file/project reproducible and self-contained. |
Beta Was this translation helpful? Give feedback.
7 replies
-
@jbullock35 I believe the Includes options can all take either ---
title: "My Quarto document"
format:
html:
include-before-body:
text: |
<script src="https://example.com/myMathjax.js"></script>
--- |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Description
Quarto 1.3.450 can't handle a YAML header like this:
The problem is that the argument to
include-before-body
is remote. My understanding is that pandoc itself can't handle remote files as arguments to theinclude-before
options, and that this is why Quarto chokes in such cases.But R Markdown can handle remote includes. For example, this YAML header poses no problems to R Markdown:
I gather that the remote include works for R Markdown because knitr downloads the remote file before passing it to pandoc. Can something similar be done for Quarto, so that Quarto can handle remote files?
Beta Was this translation helpful? Give feedback.
All reactions