File tree Expand file tree Collapse file tree
src/resources/formats/html/bootstrap Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2150,15 +2150,26 @@ code.sourceCode a.code-annotation-anchor {
21502150// override _reboot.scss
21512151
21522152// code blocks
2153- pre code {
2153+ pre {
21542154 font-family : $font-family-monospace-block ;
21552155 // I'm really not confident that this is correct
21562156 @include font-size ($code-block-font-size );
21572157 font-weight : $font-weight-monospace-block ;
2158+
2159+ // adding these inherit overrides here
2160+ // is what `_reboot.scss` does.
2161+ // we mirror it here for consistency
2162+ //
2163+ // Account for some code outputs that place code tags in pre tags
2164+ code {
2165+ font-family : inherit ;
2166+ @include font-size (inherit );
2167+ font-weight : inherit ;
2168+ }
21582169}
21592170
21602171// code inlines
2161- p code {
2172+ code {
21622173 font-family : $font-family-monospace-inline ;
21632174 @include font-size ($code-inline-font-size );
21642175 font-weight : $font-weight-monospace-inline ;
You can’t perform that action at this time.
0 commit comments