Closed jcamins closed 5 years ago
Many thanks for noticing that code
blocks have been broken! However as far as I can tell, the solution after #102 is to migrate code examples away from pre.code
and towards pre > code
. I've made a separate commit (https://github.com/edwardtufte/tufte-css/commit/8b350943ea286788228c99e9f3d1d15013c4c86c and v1.7) to do this. I'm closing this PR with thanks and the recommendation to use <pre><code>
everywhere and to deprecate all instances of <pre class="code">
.
My apologies for the mix-up and thanks again.
That makes sense, thanks! I took your comment on that PR to mean that I was missing something and pre > code wouldn't work without more extensive revision, whereas pre.code would. Semantically, that seems much more correct, and more consistent with other style guides.
With the change to using the semantically correct
<code>
tag,pre.code
is no longer getting the correct font face set. By specifically addressingpre.code
I got everything displaying as I wanted.