The background of code blocks is not uniform, and the background of blank lines is not gray

Operating system


Joplin version


Desktop version info

Joplin 2.14.20 (prod, darwin)

客户端 ID: 6784a6d9c2ea45359fe10021a9c9c8c8


Sync target



Markdown Editor

What issue do you have?

When there are blank lines in a code block, the blank lines is not rendered in the editor, therefore the background color of the blank lines does not match the background color of the code.


@Jabari welcome to the forum.

I cannot reproduce the issue with the missing background on the empty lines (although I am using Linux). It shows as a solid background for the whole fenced block.

When you added the Desktop version info to the support request did you delete the list of installed plugins? Do you have any installed?

I believe that the other point you make was that the background colours of the fenced code in the editor and the viewer are not the same. Adding the below to userstyle.css should make the fenced code background in the Markdown viewer look the same as the editor.

pre.hljs {
    background: #F3F3F3;
    /* changes the background colour of viewer fenced code blocks to match the editor*/

Thanks for the heads up, yes it was caused by the plantuml plugin, I uninstalled plantuml and reinstalled plantuml2 and the code blocks are showing up fine, cool!

Everything's fine now.