Open jakubkovac opened 5 years ago
I tried this on my Linux system and it produces the same root statement, but it works on Linux with both browsers. Is there a specific reason why that statement has to be there for Atom?
I guess it is caused by this line https://github.com/shd101wyy/mume/blob/1e52e93fba7bc6b6f76d467394a5d20e35bbf8a2/src/markdown-engine.ts#L452
I remembered I added root
to config because without it MathJax in vscode will not work.
Probably changing that line to the following will solve the issue.
if (isForVSCode) {
mathJaxConfig["root"] = utility.addFileProtocol(
....
Unfortunately I am not able to do it now. I will be busy for a while :(
Thanks a lot for this. I'd be more than happy to help you with a pull request but unfortunately I know nothing about package development for Atom/VSCode. In the meantime I'll use VSCode on the windows system.
When rendering a simple markdown with
latexmathjax equation as html Simple reproducible example:$$\hat{f}(x) = \sum\limits_{i=1}^N \hat{\alpha_i}\; y_i\; K(x,x_i) + \hat{\beta_i}$$
VS-code produces:
While Atom produces
The last particular statement:
Makes it not rendering correctly in Firefox. It works in chrome. VS-code works in both browsers.