MacDownApp / macdown

Open source Markdown editor for macOS.
https://macdown.uranusjr.com/
9.41k stars 1.09k forks source link

Pre-Process Error preparing HTML-CSS output #599

Open Kiikurage opened 8 years ago

Kiikurage commented 8 years ago

In math rendering, processing message is not hidden and error message is displayed.

2016-04-02 13 46 03

2016-04-02 13 46 29

But this problem does not occur in exported HTML files.

The version of the application I used is 0.6. Same problem occurs in version 0.5.2 and later, and not occurred in version 0.5.1. I think that 95b88ef is related.

Same issue is reported in #561, but that issue is closed without any solution.

uranusjr commented 8 years ago

Could you provide a sample document that can reproduce this issue?

uranusjr commented 8 years ago

Also 95b88ef is not in 0.5.2 and 0.6, so it is not likely the problem.

Kiikurage commented 8 years ago

$1$ is the minimal document. If nothing is contained in $, it is not parsed as math equation.

2016-04-02 14 05 48

Kiikurage commented 8 years ago

I removed ~/Application Support/MacDown but this problem is also occurred, FYI.

uranusjr commented 8 years ago

Hmm, strange, this works for me. Maybe there’s a problem with MathJax. I’ll look into it. screen shot 2016-04-02 at 18 26 09

Kiikurage commented 8 years ago

Thank you for trying to fix it.

I tried to check the detail of this error.

First, I run this command in the terminal, and then, I became able to open the webkit debugger.

$ defaults write com.uranusjr.macdown WebKitDeveloperExtras True

2016-04-02 20 07 50

Next, I inspected the last error as MathJax.Hub.lastPrepError.

2016-04-02 20 09 24

The error was as follows,

column: 13864
line: 19
message: "undefined is not a function (evaluating 'b.getTabOrder(l)')"
sourceURL: "https://cdn.mathjax.org/mathjax/latest/jax/output/HTML-CSS/jax.js?rev=2.5.3"
stack: "
  preTranslate@https://cdn.mathjax.org/mathjax/latest/jax/output/HTML-CSS/jax.js?rev=2.5.3:19:13864
  prepareOutput@https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML:19:38863
  execute@https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML:19:5605
  WAITEXECUTE@https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML:19:8348
  cb@https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML:19:2664
  WAITEXECUTE@https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML:19:8536
  cb@https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML:19:2664
  Execute@https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML:19:9814
  loadComplete@https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML:19:26930
  execute@https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML:19:5605
  cb@https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML:19:2664
  Process@https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML:19:11085
  call@https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML:19:11339
  WAITEXECUTE@https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML:19:8536
  cb@https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML:19:2664
  execute@https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML:19:5605
  cb@https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML:19:2664"
__proto__: Error