attila icon indicating copy to clipboard operation
attila copied to clipboard

Code block first line add ghost tab

Open ncastrohub opened this issue 4 years ago • 2 comments

Hi I've founded an error writing a code block. The first line seems to have an unwanted tab (or four spacing) added

Example:

image

and the blog shows

image

It happens to me also on python.

ncastrohub avatar Mar 01 '21 00:03 ncastrohub

I confirm that the problem exists.

I'm using a quick fix in a CSS_OVERRIDE file for now:

pre code {
    margin:0!important;
    padding:0!important;
}

sio avatar Apr 16 '21 07:04 sio

This we can fix it. I will take an Action item.

arulrajnet avatar Apr 16 '21 08:04 arulrajnet

The issue in the code blocks defined in the markdown files.

The codeblock defined in rst files works fine.

Change the CSS theme is not an option. So overriding the CSS is the fix. Updated the same in demo site as well.

Closing this.

arulrajnet avatar Sep 20 '22 00:09 arulrajnet