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

options are ignored when using v-katex:auto={ options } #51

Closed
bendeutz opened this issue Oct 9, 2021 · 2 comments
Closed

options are ignored when using v-katex:auto={ options } #51

bendeutz opened this issue Oct 9, 2021 · 2 comments

Comments

@bendeutz
Copy link

bendeutz commented Oct 9, 2021

Heys guys,

maybe someone can help me out here. I want to use $-signs as delimiters and i tried this code-snippet:

v-katex:auto="{delimiters: [{ left: '$', right: '$', display: false }],}"

For some reason the delimiters are are still standard. Any ideas?

@shadskii
Copy link
Collaborator

Hi,

It looks like your problem is the delimiters config should be nested under options. The follow snippet will give you your desired result.

v-katex:auto="{ options: { delimiters: [{ left: '$', right: '$', display: false }] } }"

Hope this helps!

@bendeutz
Copy link
Author

Hey shadskii,

thank you very much :-) that helped!

Im ashamed, because thats not the first time im struggling with exactly this type of error :-(

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

No branches or pull requests

2 participants