royal-statistical-society / datavisguide

Introductory guide to the art and science of data visualisation. Insights, advice, and examples (with code) to make data outputs more readable, accessible, and impactful.
https://royal-statistical-society.github.io/datavisguide/
Other
134 stars 20 forks source link

Code fold bug fix #47

Closed nrennie closed 9 months ago

nrennie commented 9 months ago

I noticed that not all of the code in the principles page was folded by default - it was caused by a weird Quarto bug. I'm not 100% sure why this problem exists but it seems adding #| layout-ncol: 2 removes the ability to fold code... Since the code block isn't executed anyway, I've removed this option and it seems to have fixed it.

I've also removed the double {{}} from the Python and Julia code block in tools - the code won't execute but the code fencing will be hidden, and the syntax highlighting will be applied.

Closes #46

brtarran commented 9 months ago

@nrennie Thanks for spotting and fixing this issue. Have you raised an issue with the Quarto team about the bug, or would you like me to?