Blocks of code are formatted oddly
-
I’m running Seasonal on my website and I use Markdown. When you want to write code on your site in Markdown, you use four spaces (or a tab) before each line of the code, which converts to
<pre><code>
when the page is displayed.I have a recent blog post in which I do this, and the code is badly formatted; it looks like there’s a border on the top and bottom of each line in addition to the border around the block of background colour, and the text is a colour which does not show up well against the grey. It’s like two separate visual styles are being applied.
Contrast this with a previous post of mine. On this webpage, instead of using Markdown to create the blocks of code, I’ve just wrapped each block of code in
<pre>
tags and it looks much much better.Please can you tweak the CSS such that the result of the Markdown code looks the same as the example in the second blog post (black on grey)? It would make the theme much easier to use when discussing code!
Thanks.
- The topic ‘Blocks of code are formatted oddly’ is closed to new replies.