junegunn / goyo.vim

:tulip: Distraction-free writing in Vim
MIT License
4.49k stars 115 forks source link

certain bold & italics broken after leaving Goyo #250

Open daveriedstra opened 3 years ago

daveriedstra commented 3 years ago

issue

When using a plugin for markdown syntax (such as vim-markdown or vim-pandoc-syntax), leaving Goyo removes formatting for *italic* and **bold** elements (and underscore variants), though the asterisks / underscores remain concealed properly. Other bold and italic formatting (such as # headings) works, which makes me think this is somehow related to concealing.

reproduce

  1. open or create a markdown file with some _italic_, __bold__, *italic*, or **bold** formatting image

  2. enter Goyo mode

  3. observe formatting is correct image

  4. leave Goyo mode

  5. observe formatting lost image

  6. enter Goyo mode

  7. observe formatting still lost image

other details

felipejoribeiro commented 3 years ago

I also have this problem in NVIM 0.5.0.

realshovanshah commented 8 months ago

Confirming that the issue with conceal being 'reset' is also happening in Vim 9