vim-pandoc / vim-pandoc-syntax

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

Conceal working in tex does not work in pandoc-markdown (neovim) #346

Open JanSurft opened 3 years ago

JanSurft commented 3 years ago

When I write specific subscripts in pandoc-markdown some characters do not get concealed the way I expect them to do. It is specifically notable that the concealing works fine in *.tex files but not in a markdown file with pandoc-syntax activated.

Below I included an exmaplatory behaviour that shows the unexpected result.

Setup

# nvim --version

NVIM v0.5.0-799-g186ba3b68
Build type: RelWithDebInfo
LuaJIT 2.1.0-beta3
Compilation: /usr/bin/gcc-5 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -O2 -g -Og -g -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wshadow -Wconversion -Wmissing-prototypes -Wvla -fstack-protector-strong -fno-common -fdiagnostics-color=auto -DINCLUDE_GENERATED_DECLARATIONS -D_GNU_SOURCE -DNVIM_MSGPACK_HAS_FLOAT32 -DNVIM_UNIBI_HAS_VAR_FROM -DMIN_LOG_LEVEL=3 -I/home/travis/build/neovim/bot-ci/build/neovim/build/config -I/home/travis/build/neovim/bot-ci/build/neovim/src -I/home/travis/build/neovim/bot-ci/build/neovim/.deps/usr/include -I/usr/include -I/home/travis/build/neovim/bot-ci/build/neovim/build/src/nvim/auto -I/home/travis/build/neovim/bot-ci/build/neovim/build/include

Features: +acl +iconv +tui

Example (unconcealed appearance)

As an example this is just a simple math environment where I want to subscript a theta-symbol with an i.

\[ \theta_i \]

Actual concealed appearance

When concealing is run by the pandoc plugin (filetype is pandoc), the \theta does not get concealed with the unicode-symbol.

\thetaᵢ

Expected concealed appearance (respectively the way it is concealed in a *.tex file)

I would expect the theta of course to render as the unicode-theta symbol. Which it does when I define the above example within a *.tex where the filetype is tex.

θᵢ