Skip to content

Commit 7f38806

Browse files
committed
Rustdoc: Highlight <code> elements (from Markdown backticks)
1 parent 223c043 commit 7f38806

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/librustdoc/html/static/main.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,10 @@ code, pre {
120120
font-family: "Source Code Pro", Menlo, Monaco, Consolas, "DejaVu Sans Mono", Inconsolata, monospace;
121121
white-space: pre-wrap;
122122
}
123+
.docblock code {
124+
background-color: #F5F5F5;
125+
border-radius: 3px;
126+
}
123127
pre {
124128
background-color: #F5F5F5;
125129
padding: 14px;

0 commit comments

Comments
 (0)