Can I disable link concealing? #231
-
Since its not possible to disable the poor line-wrapping. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Yes, kind of. The link concealing, along with all the other concealing behavior, is controlled by modifying the require('render-markdown').setup({
win_options = { conceallevel = { rendered = 0 } },
})j Now like I said this changes all concealing behavior and concealing is used in several places, like checkboxes, wikilinks, code blocks to some extent, and potentially some others. All of these will now appear different. There is no way to change how concealing works at a per line level in neovim, it only works at a window level. Now there is an alternative and it's something that works outside of this plugin, though a little more complicated. The link concealing is not done by this plugin exactly. It comes from the default highlight from nvim-treesitter: https://github.com/nvim-treesitter/nvim-treesitter/blob/master/queries/markdown_inline/highlights.scm, which specifies all the parts of a link to conceal. You can override these highlights by creating a file in your config which will be used instead. The contents would largely be a copy minus all the link concealing stuff. If you do this do not modify the plugin configuration at all. Instead create a file at:
|
Beta Was this translation helpful? Give feedback.
Yes, kind of.
The link concealing, along with all the other concealing behavior, is controlled by modifying the
conceallevel
for the window when rendering. The default we use for this is 3. You can change this to 0, meaning disable concealing, by setting this configuration:Now like I said this changes all concealing behavior and concealing is used in several places, like checkboxes, wikilinks, code blocks to some extent, and potentially some others. All of these will now appear different.
There is no way to change how concealing works at a per line level in neovim, it only works at a window level.