-
Notifications
You must be signed in to change notification settings - Fork 13
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
Link concealing [feature request] #108
Comments
Hey @Ginner! I remember you also sent a PR to fix a typo in the README, glad to see you're happy still :) Even the appended syntax isn't written by me but mostly copied over from people who understand far more about how to do these kinds of things (though I do patch / tweak some small things sometimes). That said I don't think it would hurt to add this as an "opt-in" feature. That means I would add a new setting to mkdx which would allow you to conceal links. For inspiration I could look at what vim-pandoc-syntax does and perhaps copy it into the syntax file + give them credits for actually writing it. I'll have to do some research to see if it would break other features (since now you can remove links by pressing prefixln which relies on syntax highlighting). I'll look into it, thanks for the suggestion 👍 |
Conceal link URLs when &conceallevel is set (#108)
Hi @Ginner, Worked on it a little bit, I doubt a flag will even be needed because if a user actually sets Also, you mentioned it just showing the text, does that mean vim-pandoc-syntax also hides the surrounding In any case it's in master and you can give it a try to see if it works correctly for you :) |
Wow, you're effective! I think you're right in your assumption, that users enabling concealment will want the feature on. At least I do ;) No, you're right, vim-pandoc-syntax leaves the square brackets, which I find preferable. sorry for that. I've tried it and it works perfectly! Thank you so much :) |
Haha cheers for the compliment :) And no problem either, good to know vim-pandoc-syntax leaves them too :) In the meantime, enjoy the feature, and closing :) |
Hi Sidney!
First off, thank you for a great plugin. I've been using it for a little while.
In the documentation it says that it is not a 'syntax plugin', so I've been using the, also great, vim-pandoc-syntax as a stand-alone syntax plugin.
However, it seems that your plugin is actually a pretty good syntax-plugin as well. The only thing I'm missing after turning off vim-pandoc-syntax is concealing urls. E.g.:
[something](long-url-to-something.com)
becomessomething
(but underlined).I'd love to see it implemented. What are your thoughts on that?
Again, thank you.
The text was updated successfully, but these errors were encountered: