Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code rendered incorrectly #87

Closed
V0XNIHILI opened this issue Dec 4, 2023 · 4 comments
Closed

Code rendered incorrectly #87

V0XNIHILI opened this issue Dec 4, 2023 · 4 comments

Comments

@V0XNIHILI
Copy link
Contributor

For example on this page: https://harvard-edge.github.io/cs249r_book/frameworks.html

The code has still some formatting inside the code block:
image

@profvjreddi
Copy link
Contributor

profvjreddi commented Dec 5, 2023 via email

@V0XNIHILI
Copy link
Contributor Author

V0XNIHILI commented Dec 5, 2023

I think the code blocks should look like this (only one { instead of two {{):

image

Instead of this currently:

image

At least, that is what is shown in the Quarto documentation:

image

I can change this in all files, but I am only not 100% sure this is the fix. How can we check this before merging it into main?

@profvjreddi
Copy link
Contributor

profvjreddi commented Dec 5, 2023 via email

@V0XNIHILI
Copy link
Contributor Author

It seems like the fix is actually: {.python}, since this is a static block of code, see here: https://quarto.org/docs/output-formats/html-code.html#code-overflow

Screenshot:
image

Shall I change this in all .qmd files?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants