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

what if i don't want to use katex #147

Closed
yuanfux opened this issue Dec 5, 2017 · 4 comments
Closed

what if i don't want to use katex #147

yuanfux opened this issue Dec 5, 2017 · 4 comments

Comments

@yuanfux
Copy link

yuanfux commented Dec 5, 2017

How do I prevent katex from loading ?

@CHENXCHEN
Copy link
Collaborator

refere to this, disable katex auto loading.

@yuanfux
Copy link
Author

yuanfux commented Dec 6, 2017

I've already set the external_link to false, but i still got errors saying

external_link.markdown_css is not a function, if you want to disabled this error log, set external_link.markdown_css to function or false

external_link.katex_css is not a function, if you want to disabled this error log, set external_link.katex_css to function or false

external_link.katex_js is not a function, if you want to disabled this error log, set external_link.katex_js to function or false

here is my code
<mavon-editor :ishljs="false" :external_link="false" ></mavon-editor>

and I also tried

<mavon-editor :ishljs="false" :external_link="externalLink" ></mavon-editor>
private externalLink: object = { markdown_css: false, katex_css: false, katex_js: false };
The errors still popped up.

@CHENXCHEN
Copy link
Collaborator

CHENXCHEN commented Dec 7, 2017

Sorry about this, if you set markdown_css, katex_css, katex_js to false, mavon-editor will not automatic loading thease files.
But it still print errors, this is a bug at L290
You can ignore it in this version(v2.4.10), i will fix it in next version.
Thanks for your feedback.
Have a nice day!

@CHENXCHEN
Copy link
Collaborator

v2.4.11 fix it.

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

No branches or pull requests

2 participants