mathpix-markdown-it icon indicating copy to clipboard operation
mathpix-markdown-it copied to clipboard

【BUG】math inline mode with whitespace not parse

Open xiaoyvyv opened this issue 1 year ago • 1 comments

the math code is in $ but with whitespace is not render

below is ok

hello math  $ax^2+bx+c=0$

below is bad

hello  math  $ ax^2+bx+c=0  $

hope with whitespace can render

xiaoyvyv avatar Jan 31 '24 08:01 xiaoyvyv

@xiaoyvyv This is expected behavior. If the $...$ entry has spaces after and before the $, it will not be considered a math separator. If you need spaces for the inline math, you can use \(...\) delimiters instead of $...$

Screenshot 2024-04-23 at 09 48 03

OlgaRedozubova avatar Apr 23 '24 06:04 OlgaRedozubova