jmbuhr / quarto-nvim-kickstarter

Neovim configuration to show my plugins in action.
MIT License
200 stars 47 forks source link

Syntax highlighting for ```{=latex} #115

Open weberam2 opened 1 month ago

weberam2 commented 1 month ago

Hello

First of all, I think this project is amazing. Thank you for making it.

I was just wondering if there was a way to configure the syntax highlighting for when a code chunk has an = sign before it.

Example:

```{latex} ```

that highlights latex syntax well

```{=latex} ```

does not

But I need to write in =latex for the latex code to render properly ( and not show up as a literal code chunk.

Thank you, and sorry if this is obvious

weberam2 commented 1 month ago

Just edited as I noticed it didn't show my examples

jmbuhr commented 1 month ago

Unfortunately not for now. Quarto uses a version of markdown by pandoc, but the grammar for the parser is only written for more basic markdown.

That being said this particular feature might be easier to add than other pandoc specific markdown features. The developers of the markdown teesitter grammar already added some small things that are technically outside of the basic markdown scope, but helped us with this version of markdown, so maybe a PR can be made that would make this possible.

jmbuhr commented 1 month ago

related: https://github.com/quarto-dev/quarto-nvim/issues/31