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

highlight math in tables

Open Konfekt opened this issue 8 years ago • 3 comments

Expected: The math syntax highlighting is enabled in the cells in tables just as elsewhere.

Found: The math syntax highlighting is disabled in the cells in tables, as seen in

image

Konfekt avatar Oct 21 '17 11:10 Konfekt

The same goes fors many other types of highlighting in tables, including references (@someref1999) and font markup ([text]{.smallcaps}).

andreasmhallberg avatar Nov 04 '19 15:11 andreasmhallberg

Looking at

" syntax/pandoc.vim (line 385)
" Tables: {{{2

it is not clear to me where the syntax highlighting of the cell contents are defined. Perhaps there is simply none? Where is the syntax highlighting for the cells implicitly being disabled then?

Konfekt avatar Nov 04 '19 18:11 Konfekt

The highlighting for spans is not contained in tables, because there are no rules for the contents of a table (not the headers and lines, but the text themselves). If tables were proper regions, we should make those contain the spans; I'm not sure they are proper regions in all cases.

fmoralesc avatar Nov 04 '19 19:11 fmoralesc