# how to remove line break after an equation

347 views
in Q2A Core
I want to set forum which contains many math equations, using MathJax.

After I put an equation, it always append a line break: <br>, that makes line space too big and ugly.

How to remove this line break?
Q2A version: 1.7.4

+1 vote
If you use $-$ equation comes in inline. $$-$$ is for newline. But these can be changed in MathJax configuration. You may also try this plugin or copy-paste the Q2A js file mentioned to ensure Math gets rendered with Ajax.

https://github.com/arjunsuresh/mathjax
by
Thank you, arjunsuresh.
however, I haven't solved my problem.
I use $$-$$, because $-$ doesn't work.
and I use Basic Editor, because other Editor does something I don't know.
I still don't know where came from the extra <br>, from mathjax or another php file?
Hence I don't know howto remove <br>

the only thing I did is put following lines in the <head>
<script type="text/javascript" async
src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS_CHTML">
</script>