You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I'm the one asking about activating this plugin on other file type on reddit. Thanks for quickly adding the ability.
My use case currently is I inject markdown highlight on all the code standalone multi-line string in python.
With this the standard markdown highlighting work perfectly.
With this plugin enabled for python file, the highlighting does work, but I noticed it also highlight the python comments, outside of the """ multiline string that is injected as markdown.
Do you know a way to restrict the highlighting just to this injected markdown reason?
The text was updated successfully, but these errors were encountered:
Hmm, I've not worked with injections in tree-sitter, but I imagine what's happening is your injection correctly only adds the markdown to the relevant section of the buffer. Whereas this plugin attempts to interpret the entire buffer as markdown and finds it in places outside of comments.
…ng buffer as markdown
## Details
This should solve issue: #3
This will allow for markdown to be rendered with this plugin when
injected in other languages, for example Python comments.
Currently we attempt to parse the entire buffer as markdown which
leads to some strange behavior, i.e. interpretting single line
comments as markdown.
After this change we will read the injected markdown sections.
This should also allow us to take advantage of the markdown_inline
parser for later changes, which is nice.
Hi, I'm the one asking about activating this plugin on other file type on reddit. Thanks for quickly adding the ability.
My use case currently is I inject markdown highlight on all the code standalone multi-line string in python.
With this the standard markdown highlighting work perfectly.
With this plugin enabled for python file, the highlighting does work, but I noticed it also highlight the python comments, outside of the """ multiline string that is injected as markdown.
Do you know a way to restrict the highlighting just to this injected markdown reason?
The text was updated successfully, but these errors were encountered: