Is there a way to add space between single lines of math equations?

i want more space between my lines of math to make it clearer and more visible, e.g.
$y=mx+q$
$(a+b)^2=a^2+2ab+b^2$
I would like to add margin on top and on the bottom of the equations

You could try something like this to start to see if it works for you. Adjust as needed:

.markdown-source-view .cm-line:has(mjx-container), 
.markdown-preview-view p:has(mjx-container) { 
    line-height: 2.1em; 
}

No snippet (Live Preview | Reading view):

With snippet:

Screenshot 2024-10-11 075318

it worked perfectly! thank you!

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.