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.

Better LaTeX Environment Detection

See original GitHub issue

Thanks for this plugin! I really rely on it to write math in Obsidian. I’m thinking is it possible to improve the detection of the LaTeX environment? Currently the LaTeX provider will be triggered after any dollar sign, even in code blocks. So I think the better logic is to ignore dollar signs in inline code, code fences, and escaped dollar signs \$.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
tth05commented, Mar 31, 2022

Implemented in 45e9bf8de49a0b20b60e9b2898a407a9a512efde. I made as an option because one might need this when writing admonition blocks or something similar. Let me know if it works how you’d expect it to work.

1reaction
zcysxycommented, Mar 22, 2022

Thanks, that’s probably a good idea. I’ll get back to working on this this weekend. If understand correctly, you’re talking about ` and ```, right?

Yes! And also the escaped dollar signs \$. For example, the dollar sign in It costs me 15\$. should not trigger the LaTeX provider.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to detect if in an exercise environment? - TeX
The question How can I detect if I'm inside or outside of a float environment? does something similar, and using that idea I...
Read more >
4.3 Automatic Package detection - VIM-LaTeX
Whenever Latex-Suite begins editing a new LaTeX file, it scans it for \usepackage{name} lines, and if a supported package is found, then it...
Read more >
Tips and Tricks for Troubleshooting LaTeX - Overleaf
They are usually more problematic and prevent the document from properly compiling, or indicate a bigger problem. You should fix errors in almost...
Read more >
Wearable Natural Rubber Latex Gloves with Curcumin ... - NCBI
Keywords: natural rubber latex, curcumin, fluorescence-based sensor, torn glove detection, wearable sensor, surgical gloves.
Read more >
Inhalable microplastics prevails in air: Exploring the size ...
Yet, the size detection limit in measuring airborne MPs undermines the ... More than half of all plastic waste flowed directly to the...
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