vim-pandoc / vim-pandoc-syntax

pandoc markdown syntax, to be installed alongside vim-pandoc
MIT License
425 stars 61 forks source link

emphasis and bold not emphasized and bold #200

Open ZelphirKaltstahl opened 8 years ago

ZelphirKaltstahl commented 8 years ago

When I write like this:

screenshot

Nothing is highlighted. I do not like to conceal stuff, so I deactivated that in the syntax file by setting a 0 where there was a 1:

if !exists("g:pandoc#syntax#conceal#use")
        if v:version < 703
    let g:pandoc#syntax#conceal#use = 0
        else
    let g:pandoc#syntax#conceal#use = 0
        endif
else
        " exists, but we cannot use it, disable anyway
        if v:version < 703
    let g:pandoc#syntax#conceal#use = 0
        endif
endif

But this is the only change I made to that file. How do I get the proper display of bold and emphasised?

azrdev commented 7 years ago

This seems to be related to the colorscheme. I'm using molokai and summerfruit256, both display bold+italics correctly when they are loaded before a file is opened (i.e. set in the vimrc, or using first :colorscheme $name before :edit $file). However, when I change the colorscheme after a pandoc markdown file has been opened, bold+italics vanish and don't come back, even when changing back to the "original" colorscheme.


edit: reloading the filetype restores bold+italics, i.e. issuing :setf pandoc after loading the colorscheme. Got this idea from https://github.com/altercation/solarized/issues/102, probably it's a bug in vim.

Regarding your configuration @ZelphirKaltstahl, this line suggests that the conceal settings (that you patched out) also control use of real bold and italics.