Listings with unrendered documents #7188
-
DescriptionI have a website that features a listing of 11 documents. They appear using a custom ejs template that pulls from the title of each document to make the text for a link. Here's the template: <ul>
<% for (let i = 0; i < items.length; i++) { %>
<li><a href="<%- items[i].path %>">PS <%= i+1 %>: <%= items[i].title %></a></li>
<% } %>
</ul> The listing renders like this: ![]() The difference between the PS that appear correctly in the listing and those that do not is that the former render to pdf and the latter are ignored during render in Are there any suggestions for how to solve this in a way that will not partially break the listing? This is a version of a general issue that I've come up with in a few contexts: how to make a qmd file accessible from a website? I can hardcode links to a github raw file, but I'd rather not. Thanks for the help!
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Could you share a small self-contained "working" (reproducible) example to work with, i.e., a complete Quarto document or a Git repository? Thanks. You can share a Quarto document using the following syntax, i.e., using more backticks than you have in your document (usually four ````qmd
---
title: "Reproducible Quarto Document"
format: html
---
This is a reproducible Quarto document using `format: html`.
It is written in Markdown and contains embedded R code.
When you run the code, it will produce a plot.
```{r}
plot(cars)
```
The end.
```` |
Beta Was this translation helpful? Give feedback.
If you want to keep the Quarto documents for your students, use code tools to make it part of the documents.
https://quarto.org/docs/output-formats/html-code.html#code-tools
Also you can linked formats, see https://quarto.org/docs/output-formats/html-multi-format.html#specifying-formats-to-link.
_quarto.yml
problem-sets.qmd