-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Support Katex in '.md' files #639
Comments
One question since I haven’t tried to write LaTeX maths in Markdown: which of KATEX and MathJAX is more popular (and more worthy to support)? |
Thanks for the reply. To be quiet honest it depends. People have personal opinion on this. I for one has no problem with either of those, since the Tex written in KaTex works in MathJax as well.
But if you are looking for speed then I suggest to use MathJax since it is faster among the two and is also used by sites like stack exchange and Wikipedia
…________________________________
From: Paddy Xu <[email protected]>
Sent: Friday, May 1, 2020 9:45:56 PM
To: QL-Win/QuickLook <[email protected]>
Cc: Justaphysicsnerd <[email protected]>; Author <[email protected]>
Subject: Re: [QL-Win/QuickLook] Support Katex in '.md' files (#639)
One question since I haven’t tried to write LaTeX maths in Markdown: which of KATEX and MathJAX is more popular (and more worthy to support)?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#639 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/APK66AGB5BMV2EEOP5ZQDQ3RPLYTZANCNFSM4MRJSOUQ>.
|
Fixed! |
So, is it coming in the next release and please tell me what solution did you implement ?
…________________________________
From: Pengfei Xu <[email protected]>
Sent: Saturday, May 16, 2020 11:45:01 PM
To: QL-Win/QuickLook <[email protected]>
Cc: Justaphysicsnerd <[email protected]>; Author <[email protected]>
Subject: Re: [QL-Win/QuickLook] Support Katex in '.md' files (#639)
Fixed!
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#639 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/APK66AAQMJBZU4LD5CAECPLRR3J2LANCNFSM4MRJSOUQ>.
|
The new version will be released very soon, and meanwhile, you can get it here: https://ci.appveyor.com/project/xupefei/quicklook/builds/32922024/artifacts I added MathJax support. You have to connect to the Internet to see equations (MathJax must download some assets to render equations). |
Thanks
…________________________________
From: Pengfei Xu <[email protected]>
Sent: Sunday, May 17, 2020 12:22:16 AM
To: QL-Win/QuickLook <[email protected]>
Cc: Justaphysicsnerd <[email protected]>; Author <[email protected]>
Subject: Re: [QL-Win/QuickLook] Support Katex in '.md' files (#639)
The new version will be released very soon, and meanwhile, you can get it here: https://ci.appveyor.com/project/xupefei/quicklook/builds/32922024/artifacts
I added MathJax support. You have to connect to the Internet to see equations (MathJax must download some assets to render equations).
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#639 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/APK66AFNGJVYPE3XG37BQSLRR3OGBANCNFSM4MRJSOUQ>.
|
I tried the new version but it doesn’t work
[cid:[email protected]]
Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10
…________________________________
From: Pengfei Xu <[email protected]>
Sent: Sunday, May 17, 2020 12:22:16 AM
To: QL-Win/QuickLook <[email protected]>
Cc: Justaphysicsnerd <[email protected]>; Author <[email protected]>
Subject: Re: [QL-Win/QuickLook] Support Katex in '.md' files (#639)
The new version will be released very soon, and meanwhile, you can get it here: https://ci.appveyor.com/project/xupefei/quicklook/builds/32922024/artifacts
I added MathJax support. You have to connect to the Internet to see equations (MathJax must download some assets to render equations).
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#639 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/APK66AFNGJVYPE3XG37BQSLRR3OGBANCNFSM4MRJSOUQ>.
|
I can't see your attached image. |
[Image]
|
You should post images by using your web browser and go to github.com. |
it doesn't work, i have installed the latest version. Sorry for the late reply |
Could you upload the MD file here so I can test? |
Github doesn't support uploading markdown files so i am just gonna copy the content of the file
|
the function text is somehow striken out |
in github |
Thanks. I will test soon. |
I managed to test MathJax and found it does not work in QuickLook. I don't know why this happens, since the same webpage can actually show equations in IE and I have set QL WebBrowser's compatibility version to 11. I think this issue can't be fixed unless we replace the system WebBrowser (IE) with CefSharp (Chrome). Anyone can help here? HTML for test: md2html.zip |
Maybe try something like katex ? I am sorry if I am wrong, I am just a student. |
Could KaTeX-support be added as well? Currently it's only partially working: Source: ### Terminology
- For the training samples, each sample is assigned a class $y \in \mathcal{Y} \triangleq \{y_1, ..., y_N\}\,$
- The mean vector for a class $y_i$ is $\boldsymbol{\mu}(y=y_i) \equiv \boldsymbol{\mu}_{y_i}\,$
- The covariance matrix of class $y_i$ is denoted by $\bold{\Sigma}(y=y_i) \equiv \bold{\Sigma}_{y_i}\,$
### Quadratic Discriminant Analysis
Distinguishes between two classes by evaluating
$$
Q(\bold{x}) = \frac{1}{2} \left[ (\bold{x} - \hat{\boldsymbol{\mu}}_2)^T \hat{\bold{\Sigma}}_2^{-1} (\bold{x} - \hat{\boldsymbol{\mu}}_2) - (\bold{x} - \hat{\boldsymbol{\mu}}_1) \hat{\bold{\Sigma}}_1^{-1} (\bold{x} - \hat{\boldsymbol{\mu}}_1) \right] + \frac{1}{2}\log \left( \frac{\left| \hat{\bold{\Sigma}}_2 \right|}{\left| \hat{\bold{\Sigma}}_2 \right|} \right).
$$
- $\bold{x} \in \Reals^p$: a sample from the test data set
- $\hat{\boldsymbol{\mu}}_1, \hat{\boldsymbol{\mu}}_2 \in \Reals^p$ and $\hat{\bold{\Sigma}}_1, \hat{\bold{\Sigma}}_2 \in \Reals^{p \times p}$: location and covariance estimates given the two populations of training data
|
@Chaphasilor I can't help much but, Instead of using \bold:
Using \boldsymbol seems to work for MathJax:
Since QuickLook currently uses MathJax and not KaTeX |
@MrPancakes39 yeah, I already noted that in my comment. The bahavior of |
Is your feature request related to a problem? Please describe.
I'm always frustrated whenever I open any markdown file, it has lot of lines written in KATEX. We all know that how complicated katex can be in its code form. So when i open my markdown files the katex is still in its code form.
Describe the solution you'd like
Improve the markdown file viewer i.e. add KATEX support to it.
Describe alternatives you've considered
If you don't want to make that permanent, maybe make plugins for KATEX, MathJAX etc.
Additional context
Please
The text was updated successfully, but these errors were encountered: