Replies: 3 comments 1 reply
-
Quarto currently doesn't support that usage and we don't intend it to. Quarto resolves images in URLs because that's required for Instead, you can create a pre-render script that fetches the readme and puts it somewhere that's visible to the rest of your project. |
Beta Was this translation helpful? Give feedback.
-
If it's only Markdown (no computation) and you really need it to be up to date based on when the user loads the page (rather than on page render), you might be able to write an OJS block to fetch the Markdown file and pop it straight into the doc with HTL, like:
Important I feel like you'd want to think really carefully about any possible security implications of that, though — you'd want to be pretty confident that you trust the source of the Markdown file and that there's no way anything can end up in it that'll have adverse effects for users (for example, I'd want to know how OJS's Markdown renderer handles iframes or other HTML tags). I definitely wouldn't do it with an HTML tag, especially if the remote file is hosted elsewhere. |
Beta Was this translation helpful? Give feedback.
-
Yes you are right, it's only Markdown, I simply want to fetch it and render it as part of the html site with the same style (css/scss). It would definitely be an asset that the included markdown is fetched and rendered directly from external source on page loading. But for now I could also live with loading and rendereing the content on page rendering (in the example above whenever something is pushed to the main branch). This would not mean the most up to date version is automatically rendered, but at least I dont have to maintain a copied version of the external markdown.
Is there some resource how to do this? |
Beta Was this translation helpful? Give feedback.
-
Description
We have a website which we render and deploy via Github actions to Github pages.
Now we would like to add content to a post from an external repository/file. We could of course copy paste the content but to keep just one code base we would like to include the external content.
Like this it does not work and we receive
What is the correct way of including and rendering external markdown content?
Beta Was this translation helpful? Give feedback.
All reactions