# MathJax problems in comments

I'm not sure if this has been reported elsewhere. See for example Fred Kline's comment on quid's answer at https://mathoverflow.net/questions/104608/need-help-defining-placeholders-for-primes

The source is:

I expect I will go with $p^{*}$ and if I need to square it, I could do: $(p^{*})^2$.  I think I'll accept this answer.


It is of course caused by the pair of *'s in consecutive pieces of maths. Trying the old trick (as a moderator I can edit comments, mwahaha) of backticks just causes the math to display literally in a fixed width font.

• $p^{ * }$ test $(p^{ *})^2$ Jun 27, 2013 at 5:25
• It's a problem with the markdown parser, it replaces the '*s' with '<i>' tags. I'm looking into it
– m0sa StaffMod
Jul 1, 2013 at 16:09

Fixed in build rev 2013.7.2.799. From this build on special characters between $signs won't need to be escaped in comments. However I should note that this breaks some existing comments that escaped special characters: $p^{\*}$test$(p^{\*})^2$ The above markup in existing comments renders the same as in posts:$p^{\*}$test$(p^{\*})^2$, and can be rewritten as $p^{*}$test$(p^{*})^2$ Interesting, I've never come across this problem on Physics.SE (and I just confirmed, it does exist). Maybe because I don't use the asterisk for anything (\bar for complex conjugate for me) Fortunately, there's a workaround, simply pad the asterisk on both sides with a space. LaTeX usually is OK with extra spaces in the mix. $p^{ * }$test$(p^{ *}))^2$ The same problem does not occur with underscores ($p_{1}$test$p_{2}\$), so this is probably something fixable.
• A more versatile workaround is to use \ast. Jul 2, 2013 at 13:24
{"ft_lang_label":"__label__en","ft_lang_prob":0.9171282,"math_prob":0.8245545,"size":543,"snap":"2022-40-2023-06","text_gpt3_token_len":138,"char_repetition_ratio":0.06122449,"word_repetition_ratio":0.0,"special_character_ratio":0.25414366,"punctuation_ratio":0.1,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9906072,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2022-09-28T16:15:51Z\",\"WARC-Record-ID\":\"<urn:uuid:4e729eb4-1cac-4433-9320-4428c65ae08d>\",\"Content-Length\":\"94222\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:9bb29664-d3bd-4ee6-b7c8-61566fdf31d9>\",\"WARC-Concurrent-To\":\"<urn:uuid:4ff108ce-8e8a-4e41-867e-6d1db8d42904>\",\"WARC-IP-Address\":\"151.101.193.69\",\"WARC-Target-URI\":\"https://meta.mathoverflow.net/questions/218/mathjax-problems-in-comments\",\"WARC-Payload-Digest\":\"sha1:ADIY6HAE3HPAVQMX3NYG6UZVZDSHZGJR\",\"WARC-Block-Digest\":\"sha1:YDJOOIPGKFBWPT5FMP5EY4JKKJZGRHVV\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2022/CC-MAIN-2022-40/CC-MAIN-2022-40_segments_1664030335257.60_warc_CC-MAIN-20220928145118-20220928175118-00140.warc.gz\"}"}