vim-pandoc / vim-pandoc-syntax

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

What font to use for subscript and superscript concealed letters? #256

Closed thalesmello closed 5 years ago

thalesmello commented 5 years ago

I've just installed the plugin and I'm impressed by it.

Concealed subscript and superscript numbers work just fine, but the letters are missing in my terminal. How could I enable them? I'm surrently using "Sauce Sans Pro Nerd Font".

image

Also using iTerm2 on MacOS X

fmoralesc commented 5 years ago

I'm personally using "Inconsolata", but I know many other fonts should have them (Droid Sans Mono, Ubuntu Mono and Source Code all have them.

If the problem is with the terminal, I sadly have no suggestions (I'm a Linux user only, so I don't have a way to test).

thalesmello commented 5 years ago

It's probably an issue with my terminal then. I'll take a look later.

Meanwhile, I'm trying to disable concealing of superscript and subscript, but the following doens't work:

let g:pandoc#syntax#conceal#blacklist = ["subscript", "superscript"]

Disabling concealing does work, but I just want to disable the subscript and superscript parts.

" Works, but not what I want
let g:pandoc#syntax#conceal#use = 0

Do you know what that might be @fmoralesc ?

fmoralesc commented 5 years ago

The subscript and superscript definitions are inherited from the latex syntax file, I'm not entirely sure how things can be configured for that. I think g:tex_conceal handles that, I recommend you to take a look at the help on that (:help g:tex_conceal).

thalesmello commented 5 years ago

Thanks @fmoralesc !

Setting let g:tex_conceal = "admg" solves my problem. Thanks.