minima icon indicating copy to clipboard operation
minima copied to clipboard

Wrong spacing for code blocks in lists

Open Atcold opened this issue 1 year ago • 1 comments

The spacing before the code block looks too thin and therefore incorrect.

We have thus defined two types of primitives:

  • The first type creates new cells, either one by one or by layers. For the back-propagation algorithm, for example, there is the primitive newneurons:
    (setq layer (newneurons 5))
    
    This puts a list of five new cells into the variable layer.

image

I can see how GitHub rendering is also not correct (at least at the moment of writing this). Is there a way to fix the CSS for this kind of typographical issue?

Atcold avatar Aug 05 '24 19:08 Atcold

Adding to custom-styles.scss the following

li .highlight {
  margin-top: 5px;
  margin-bottom: 5px;
}

fixes the problem.

image

Perhaps it should be there by default?

Atcold avatar Aug 05 '24 20:08 Atcold

This won't be addressed because adding a newline before the code snippet in the Markdown source results in having the link text rendered as a <p> element.

ashmaroli avatar Mar 30 '25 16:03 ashmaroli