HTML Preview Not Working With Quarto-Generated HTML File

Viewed 62

I am trying to update my portfolio website with new Quarto-generated HTML files rather than my older RMarkdown-generated HTML files. I have rendered these updated files and they look great!

enter image description here

However, when I have uploaded this HTML to my GitHub Pages website, using htmlpreview, I get a very different picture...

enter image description here

Keep in mind that htmlpreview works perfectly well for my RMarkdown-renderd documents:

enter image description here

Here is my YAML for the Quarto document if it is of help:

author: "Brian Lookabaugh"
toc: true
number-sections: true
format:
  html:
    code-background: true
1 Answers

I think using self-contained: true would solve your case, since you would need a standalone HTML file.

author: "Brian Lookabaugh"
toc: true
number-sections: true
format:
  html:
    self-contained: true
    code-background: true

For reference, see this page from Quarto Docs.

Related