cloose / CuteMarkEd

Qt Markdown Editor
http://cloose.github.io/CuteMarkEd
Other
1.48k stars 319 forks source link

Math Formula display not corrrect when exports to PDF #312

Open huaxz1986 opened 8 years ago

huaxz1986 commented 8 years ago

v0.11.3 has a bug. When exports to PDF, MathJax Math does not display right. V0.11.2 has no problem.

cloose commented 8 years ago

@huaxz1986 Thanks for the report!

Could you add a small markdown example that demonstrates the problem?

Best regards, Christian

huaxz1986 commented 8 years ago

I show you the difference between v0.11.2 and v0.11.3. The .md file is very simple: $$ \frac 12 $$

在2016年04月21 20时37分, "Christian Loose"notifications@github.com写道:

@huaxz1986 Thanks for the report!

Could you add a small markdown example that demonstrates the problem?

Best regards, Christian

— You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub

cloose commented 8 years ago

I currently suspect the fix for issue #275 to be the cause of this problem and the issue #305.

huaxz1986 commented 8 years ago

Could you please make it support offline use for Math? Because someone such as me sometimes work at a place where there is no Internet.Thus MathJax is unavailable , and Math formula can not be parsed correctly. I make a fork to solve this problem by downloading MathJax and make it a Qt .rcc file. But there is another problem that everytime when you publish a new release, I have to modify the source files, rebuild.

dbelyaev commented 8 years ago

@cloose, yes it is. unfortunately passing html to QTextDocument will not render images generated by scripts in html (like Math and Mermaid diagram). So, I suppose it is better to revert this fix back to previous functionality, -- better to have missing links than images and diagrams.

dbelyaev commented 8 years ago

PQ #315 will revert fix for issue #275 (based on hotfix/v0.11.3)