adambard / learnxinyminutes-site

44 stars 61 forks source link

Fix code block padding #118

Closed verhovsky closed 7 months ago

verhovsky commented 7 months ago

114 switched from Pygments to rouge, which changed the structure of the generated HTML for code blocks from

<div class="highlight">
    <pre>
    </pre>
</div>

to

<div class="highlight">
    <pre class="highlight python">
    </pre>
</div>

So the .highlight class is being applied twice and there's double the padding.