vim-pandoc-syntax icon indicating copy to clipboard operation
vim-pandoc-syntax copied to clipboard

codeblock conceal can not be disabled

Open jdhao opened this issue 4 years ago • 6 comments

The doc says that we can use g:pandoc#syntax#conceal#blacklist to disable conceal feature for certain Markdown elements. I add the following setting in my config:

let g:pandoc#syntax#conceal#blacklist = ['codeblock_start', 'codeblock_delim']

Unfortunately, the start and end of code blocks are still concealed.

jdhao avatar Nov 06 '19 15:11 jdhao

Not sure it's the same problem but I worked around what sounds like a similar problem with 'inline foototes' by:

set cole=0

cjns1989 avatar Nov 18 '19 20:11 cjns1989

@cjns1989 set cole=0 will disable conceal for all the Markdown elements. I want to disable conceal for code blocks only.

jdhao avatar Nov 20 '19 07:11 jdhao

works for me! (my dotfiles/nvim config are here).

baggiponte avatar Sep 08 '22 14:09 baggiponte

works for me! (my dotfiles/nvim config are here).

How did it work for you? It did not work for me either.

amarakon avatar Sep 25 '22 00:09 amarakon

sooo I don't really know how much of a role my setup plays here, but:

  1. I am using lua for all settings
  2. I placed my markdown settings in after/plugin/quarto.lua (the naming is irrelevant, it could also be vim-pandoc.lua).

The one line in my settings is here and is simply using lua to run the vim command: vim.cmd("let g:pandoc#syntax#conceal#blacklist=['codeblock_start','codeblock_delim']").

Perhaps if you put the settings before the plugin is sourced then it won't be affected? idk

baggiponte avatar Sep 28 '22 12:09 baggiponte

Perhaps if you put the settings before the plugin is sourced then it won't be affected? idk

Yep, that was it, thanks.

amarakon avatar Sep 28 '22 14:09 amarakon