Closed ekstroem closed 4 years ago
Found out it is this bit from tufte.css
that produces the problem
pre, pre code, p pre code { width: 52.5%;
padding-left: 2.5%;
overflow-x: auto; }
If the selectors pre code
and p pre code
are removed then it works. Not sure if it breaks anything tho'
I'm getting the same problem. This fixed it for me as well, thanks @ekstroem!
I have moved these two selectors from the tufte.scss file to a comment on the same line and yes, it does fix that weird format issue. I am not sure why the original tufte.css has these as selectors as it seems to be overly specific and not really needed.
I've noticed a minor glitch that I cannot seem to track down. You can actually see it in the Jekyll-Tufte documentation here. If you look at the bottom towards the highlighted code (search for "module Jekyll") you can see that the indentation on the first line does not match the coding style. There are an additional 2 spaces (roughly) on the first line - and this indentation occurs on the first line of all code blocks.
The raw code looks ilke this: