twitter/bootstrap — Issue #1901: <code> within <pre> results in double borders
Author: sathomasga
Created: 2012-02-10 21:05:20+00:00
State: open

Code blocks formatted as `` within `

` have the 1px border from `` applied to all lines within the `

` block. Suggested fix is to add `border: none;` to styling of `code` within `pre`:

pre {
display: block;
...
// Account for some code outputs that place code tags in pre tags
code {
padding: 0;
background-color: transparent;
border: none; // remove extra border
}
}