Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
weberam2 opened this issue Jun 3, 2024 · 3 comments
Open

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

weberam2 opened this issue Jun 3, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@weberam2
Copy link

weberam2 commented Jun 3, 2024

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

@jmbuhr jmbuhr added the enhancement New feature or request label Jun 4, 2024
@weberam2
Copy link
Author

weberam2 commented Jun 4, 2024

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

@jmbuhr
Copy link
Owner

jmbuhr commented Jun 4, 2024

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
Copy link
Owner

jmbuhr commented Jun 4, 2024

related: quarto-dev/quarto-nvim#31

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants