Comments (4)
After the nvim-treesitter/nvim-treesitter#5857 has been merged, these node can be parsed normally, which solve this issue.
from tree-sitter-markdown.
It is not possible to tell the injected grammar (in this case the latex grammar) what node the root node should be. The workaround used instead is that we also include the dollars in the injected range. This way the latex grammar will automatically parse everything as it should be.
For me this also seems to be working fine. Which editor are you using? Maybe the injection queries are implemented differently?
from tree-sitter-markdown.
Yes, the highlighting works actually fine. But the problem is that some snippets plugins for latex math depend on these nodes. So it would be really useful to name these nodes with inline_formale and displayef_equation.
from tree-sitter-markdown.
Actually this is a bug of nvim-treesitter
, and it should be solved in nvim-treesitter
.
nvim-treesitter/nvim-treesitter#5857
from tree-sitter-markdown.
Related Issues (20)
- How to install, verify extension in neovim ? HOT 5
- How do I tell if I'm using experimental or basic highlighting in neovim HOT 3
- Inline bold and italics not working in nvim HOT 10
- Document requirement for static linking with Wasm HOT 1
- Nested list item with 4 indents is concealed unexpectedly HOT 5
- Extend front matter support
- Disable underline for none-latin CJK letters. HOT 2
- markdown highlight error HOT 14
- Transfer parser to tree-sitter-grammars org? HOT 4
- Code block not recognized as one if there is trailing space on the closing fence HOT 5
- markdown-inline grammar fails tests HOT 1
- MDX Parser HOT 4
- feature: pandoc raw_tex and raw_attribute support HOT 4
- feature: Add a performance comparison to the README HOT 1
- bug: Latex injections appear multiple times in AST HOT 1
- bug: Escaped `\$` counts as end of latex block
- bug: go binding cannot be imported HOT 1
- bug: README: inline latex is not listed in Extensions HOT 1
- bug: text ending with numbers in underscore block is not italic
- bug: Final fence not properly parsed in code blocks HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tree-sitter-markdown.