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

Catch LaTeX Parse Exceptions #225

Closed
octo-kumo opened this issue Mar 31, 2020 · 5 comments
Closed

Catch LaTeX Parse Exceptions #225

octo-kumo opened this issue Mar 31, 2020 · 5 comments
Labels
Milestone

Comments

@octo-kumo
Copy link

  • Markwon version: 4.3.0

When a invalid latex is provided, the program logs this error in Logcat:

E/JLatexMathPlugin: Error displaying latex: `...`
    java.lang.RuntimeException: TODO
        at ru.noties.jlatexmath.awt.Font.<init>(Font.java:35)
        ..

From the stack trace I can't find out how to handle the error.

How do I do so?

@noties
Copy link
Owner

noties commented Mar 31, 2020

Hello @misuti !

I've created the issue in jlatexmath-android#2 repository to track the progress

@noties noties added the bug label Mar 31, 2020
@noties
Copy link
Owner

noties commented Apr 1, 2020

Hello @misuti !

Can you please share exact latex that causes the crash? I cannot reproduce this behavior with the ... as input

@octo-kumo
Copy link
Author

octo-kumo commented Apr 1, 2020

The LaTeX I got was

$$小明 abc$$

Basically there was some chinese characters in there.

Edit @noties ?

@noties
Copy link
Owner

noties commented Apr 4, 2020

Hello @misuti !

I can reproduce this. I'm investigating the issue

@noties
Copy link
Owner

noties commented Apr 4, 2020

The fix is on the way, you can manually update jlatexmath-android dependency when it will be synced in maven central in your project:

implementation 'ru.noties:jlatexmath-android:0.1.2'

@noties noties added this to the 4.4.0 milestone May 2, 2020
@noties noties mentioned this issue May 14, 2020
@noties noties closed this as completed May 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants