-
Notifications
You must be signed in to change notification settings - Fork 58
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
wikilinks #54
Comments
It could definitely be implemented in a way that it can be conditionally enabled (as an extension). To me it seems like a there would be a few people who would want this. |
@MDeiml Just curious, what do you mean by conditionally enabled? Does tree-sitter parser can be configured? |
Once the parser is compiled it can't be configured, but I added some code to configure it at compile time (using environment variables). You can see it in the |
+1 for the feature, ideally given that wikilinks are becoming more and more common, alias text support would make it compatible with multiple tools: [[wikilink]]
[[wikilink|alias]] This could allow mainly for concealing where just |
I am trying to enable this feature and am having trouble (new to vim/neovim). How do I set the variable in the readme? Is it in vim.g ? |
This is not really supported that well yet in neovim. See nvim-treesitter/nvim-treesitter#3076. I think the only solution is to build the parser yourself. For this clone the repo, and run the command Then you have to point nvim-treesitter to this local version. See their documentation on how to do that. |
Closing this as wiki links are now supported (but hidden behind a compilation time flag). |
@MDeiml how do we enable these in rust bindings? |
Sadly, at the moment this is not possible when using the rust bindings as a normal cargo dependency. You would have to clone this repository locally and run |
Maybe this should not be part of tree-sitter-markdown since its not part of CommonMark Spec or Github flavored markdown so just opening up the question of supporting wikilinks.
The text was updated successfully, but these errors were encountered: