Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KaTex: Dollars signs not displaying correctly #2085

Open
acdel123 opened this issue Aug 6, 2023 · 7 comments
Open

KaTex: Dollars signs not displaying correctly #2085

acdel123 opened this issue Aug 6, 2023 · 7 comments

Comments

@acdel123
Copy link

acdel123 commented Aug 6, 2023

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.

@gsantner
Copy link
Owner

gsantner commented Aug 7, 2023 via email

@acdel123
Copy link
Author

acdel123 commented Aug 8, 2023

Do you have Math/KaTex enabled in Markor settings?

No, I don't

@acdel123
Copy link
Author

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

@gsantner
Copy link
Owner

@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

@fgtham
Copy link
Contributor

fgtham commented Sep 12, 2023

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.

@gsantner gsantner changed the title Dollars signs not displaying correctly KaTex:Dollars signs not displaying correctly Mar 27, 2024
@gsantner gsantner changed the title KaTex:Dollars signs not displaying correctly KaTex: Dollars signs not displaying correctly Mar 27, 2024
@gsantner
Copy link
Owner

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)

@acdel123
Copy link
Author

acdel123 commented Apr 9, 2024

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 acdel123 removed their assignment May 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants