Merge pull request #206 from igorkulman/code-block-formatting
Improved code block rendering when not using line numbers
This commit is contained in:
commit
f92ddf535d
@ -16,7 +16,7 @@ pre code.hljs {
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
.highlight td:first-child pre {
|
||||
.highlight td:first-child pre, .highlight pre {
|
||||
border-top-left-radius: 4px;
|
||||
border-top-right-radius: unset;
|
||||
border-bottom-left-radius: 4px;
|
||||
@ -24,10 +24,10 @@ pre code.hljs {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.highlight td:last-child pre {
|
||||
.highlight td:last-child pre, .highlight pre {
|
||||
border-radius: unset;
|
||||
}
|
||||
|
||||
.highlight td:last-child pre code {
|
||||
.highlight td:last-child pre code, .highlight pre code {
|
||||
white-space: pre;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user