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

strikeout bug

Open berrylium0078 opened this issue 4 months ago • 3 comments

When there is a line that begins with some strikeout text, it will be recognized as subscript.

For example, ~~1~~2 will be rendered as ₙ1ₙ~2

berrylium0078 avatar Sep 10 '25 10:09 berrylium0078

I am not able to replicate this. Are you using the latest commit of this plugin? What conceal settings are you using?

alerque avatar Sep 22 '25 21:09 alerque

I'm using the latest commit.
My setup is NeoVim + Lazy.nvim, and I've tested with a clean configuration, but the issue still occurs.

~/.config/nvim/lua/plugins/vimpandoc.lua:

return {
  { "vim-pandoc/vim-pandoc" },       -- branch master, commit a9896b7
  { "vim-pandoc/vim-pandoc-syntax" }, -- branch master, commit 8792910
}

Here is a minimal counterexample:

x
~~x~~

You may have to reload the file, or move the cursor between the two lines to trigger the bug.

Update: I found that subscript is also broken. ~x~ will be rendered as x~

berrylium0078 avatar Oct 15 '25 07:10 berrylium0078

Tried again with Vim, can't reproduce the issue too. Seems to be neovim specific.

P.S. the issue persists after I remove vim-pandoc-syntax but keep vim-pandoc and setting conceallevel. You can either move this issue to vim-pandoc, or just close it if you don't want to fix it.

berrylium0078 avatar Oct 15 '25 09:10 berrylium0078