question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Catch LaTeX Parse Exceptions

See original GitHub issue
  • 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?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
notiescommented, 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'
0reactions
notiescommented, Apr 4, 2020

Hello @misuti !

I can reproduce this. I’m investigating the issue

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Handle KaTex Parse Error in Try-Catch block?
Show activity on this post. Auto-renderer does not throw parse exceptions, it catches them and prints them to console.error .
Read more >
Handling Errors - KaTeX
If KaTeX encounters an error (invalid or unsupported LaTeX) and throwOnError hasn't been set to false , then katex.render and katex.
Read more >
"$$" can not be displayed by ax.text() · Issue #20266 - GitHub
sends the string to the latex parser. Which cannot find anything between the dollar signs and fails. I guess you could argue that...
Read more >
Is it good practice to use try catch for data validation [duplicate]
When parsing JSON, working with exceptions is likely the easiest way. Dividing by zero depends; by default I would check if input !=...
Read more >
8. Errors and Exceptions - IronPython 2.7.2b1 documentation
Syntax errors, also known as parsing errors, are perhaps the most common kind of complaint you get while you are still learning Python:....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found