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

BUG: Detect multiline, aline, and so on. #143

Open
ras0q opened this issue Nov 12, 2024 · 3 comments
Open

BUG: Detect multiline, aline, and so on. #143

ras0q opened this issue Nov 12, 2024 · 3 comments
Labels
bug Something isn't working math

Comments

@ras0q
Copy link
Contributor

ras0q commented Nov 12, 2024

Version (please complete the following information):

  • OS: Windows 11
  • Browser: Microsoft Edge
  • Web Clipper version: 0.9.5
  • Obsidian version: 1.7.5

Describe the bug
A clear and concise description of what the bug is. If applicable, add screenshots to help explain your problem.

In this plugin, MathJax blocks are parsed into LaTeX and imported into Obsidian enclosed in $ or $$, but multi-line equations are not displayed correctly.

To reproduce
Steps to reproduce the behavior:

  1. Open https://mathjax.github.io/MathJax-demos-web/equation-numbers.html
  2. Click the extension button and clip the page
  3. Equations display will be corrupted.

Expected behavior
A clear and concise description of what you expected to happen.

For the following equation,

image

I expect the extension to parse below.

$$
\begin{align*}
a_{1} & = b_{1} + c_{1} \\ a_{2} & = b_{2} + c_{2} - d_{2} + e_{2}
\end{align*}
$$

image

Actual behavior

$$
a_{1} & = b_{1} + c_{1} \\ a_{2} & = b_{2} + c_{2} - d_{2} + e_{2}
$$

image

Your template file
Go to your template in Web Clipper settings and click on "Export". Attach the JSON file here, or paste the content below.

@kepano kepano added the math label Nov 12, 2024
@kepano
Copy link
Collaborator

kepano commented Nov 14, 2024

Your change via #142 is in 0.9.6

@kepano kepano closed this as completed Nov 14, 2024
@ras0q
Copy link
Contributor Author

ras0q commented Nov 14, 2024

#142 is not directly related to this issue.
Some of these expressions do not render correctly in Obsidian even though they are recognized as math blocks.
I understand that some of this is due to the limitations of the mathml-to-latex package, but it would be helpful to have minimal support for multilines, alignments, etc.

@kepano kepano reopened this Nov 14, 2024
@kepano
Copy link
Collaborator

kepano commented Nov 14, 2024

Ok the should be more clarity in the difference with #121

@kepano kepano added the bug Something isn't working label Nov 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working math
Projects
None yet
Development

No branches or pull requests

2 participants