mkdocs-rtd-dropdown icon indicating copy to clipboard operation
mkdocs-rtd-dropdown copied to clipboard

Code Fences not being displayed properly

Open badacristian opened this issue 5 years ago • 4 comments

Dear Developers,

Unfortunately the code fences are not working properly with the actual version. They are being displayed, however, new lines are not recognized. Everything is being displayed into one single line, could you please have a look at it ?

Kind Regards, Cristian

badacristian avatar Sep 24 '19 05:09 badacristian

I also experience the same issue. More specifically I try to display a JSON code block and it is displayed in one line.

kplatis avatar Oct 04 '19 16:10 kplatis

Same for me!

BabisK avatar Feb 04 '20 13:02 BabisK

+1!

DaryeDev avatar Aug 17 '21 23:08 DaryeDev

In css/theme_extra.css add the important property to line 75:

pre code {
 white-space: pre !important; /* line 75 */
 word-wrap: normal;
 display: block;
 padding: 12px;
 font-size: 12px;
}

o-s-m-o-s avatar May 06 '22 03:05 o-s-m-o-s