vim-pandoc / vim-pandoc-syntax

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

conceal the lang attribute #353

Open korakinos opened 3 years ago

korakinos commented 3 years ago

It would be great if vim-pandoc-syntax concealed the language attribute "lang" (which is about natural, not programming languages).

https://pandoc.org/MANUAL.html#language-variables

Motivation: In a document with many quotes in natural languages other than the main language of the document, I use a lot of constructs like "[This is a quote in English]{lang=en}", in order for latex to produce proper hyphenation for each language in PDF generation. In reading what I have written, the language attributes are a distraction, so I would love for them to be concealed.

(This could lead down a rabbit hole of concealing all sorts of attributes. I suppose that is not a problem.)

alerque commented 3 years ago

This is actually one I would get some millage out of too. There are quite a few variations on the syntax however, and in my case it is sometimes combined with other attributes. It would be a rabbit hole and certainly something that needed to be behind a separate (default off) feature flag, but possibly one worth perusing.