markor icon indicating copy to clipboard operation
markor copied to clipboard

KaTex: Dollars signs not displaying correctly

Open acdel123 opened this issue 2 years ago • 7 comments

I am still having this problem that I mentioned in a Discussion back when version 2.9 was released.

When there is a just one $ on a line, it displays as it should. But if there is more than one on a line, something like...

Apples are normally $1.99 a pound, on sale today for the bargain price of $0.99

neither one displays in view mode.

Happens on all recent 2.9 and 2.10 versions, on Android 12 and 13, on a Motorola phone and Samsung tablet.

acdel123 avatar Aug 06 '23 15:08 acdel123

Do you have Math/KaTex enabled in Markor settings?

gsantner avatar Aug 07 '23 08:08 gsantner

Do you have Math/KaTex enabled in Markor settings?

No, I don't

acdel123 avatar Aug 08 '23 11:08 acdel123

Do you have Math/KaTex enabled in Markor settings?

I meant to say that it wasn't clear to me if your question was meant to imply that it should be enabled.

I don't have it enabled because I thought that it was intended for those users that require complex mathematical formulas in their notes, and not people using $ for currency.

But, I decided to see what impact enabling it would have.

Here is a sample note in the editor: editor

In view mode with Math/KaTex unchecked: katex_unchecked

In view mode with Math/Katex checked: katex_checked

acdel123 avatar Aug 11 '23 18:08 acdel123

@fgtham As you did quite a lot of changes related to KaTex recently in Markor.. Do you have an idea about this? It sounds like an issue with the KaTex auto rendering to me

gsantner avatar Sep 11 '23 21:09 gsantner

With Math/KaTeX unchecked, I have no idea why the dollar signs are not displayed.

With Math/Katex checked, this is expected KaTeX behaviour. It interprets everything between two dollar signs as inline math.

In both cases (Math checked and unchecked in settings) it can be fixed by escaping the dollar signs: Apples \$1.99, on sale for \$0.99 should render correctly.

fgtham avatar Sep 12 '23 06:09 fgtham

KaTex was updated here, a test APK can be downloaded there to check if it works better. (Don't forget to check if Math is enabled/disabled accordingly in settings)

gsantner avatar Mar 27 '24 03:03 gsantner

Apologies for the delay in responding; have been away for a while.

I did try that test version. Unfortunately dollar signs still aren't working properly. If there is more than one on the same line, neither displays.

Math is not enabled.

acdel123 avatar Apr 09 '24 18:04 acdel123