-
Notifications
You must be signed in to change notification settings - Fork 47
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
Incorrect rendering of latex piecewise functions. #521
Comments
Wow that was a very subtle bug. I've changed this so that the latex blocks are stripped from the document when altering it, and they are put back right before converting the markdown to html. This has solved the issue for me, and quite possibly will solve a myriad of other potential latex bugs that you or others might have had. Let me know if this works for you. (Install master) |
Yup, that fix worked. But this new master branch is less tolerant of my workaround when using
I get
With a resulting file tree of
The conversion works when I go in and manually change image links to Also, I noticed that using the md-only config that you suggested:
doesn't correctly handle Obsidian-style wiki links. (And I had to manually drop that |
Yes md-->html expects proper markdown to be given as input, not obsidian markdown, which is why the whole note-->md step exists. let's continue with your image tag problem in the other issue |
I've noticed that latex piecewise functions don't seem to render correctly when converting from md to html (this is the workflow I mentioned in the previous issue I raised #506 where I'm not actually using Obsidian but just using obsidianhtml to convert standard md).
Example: The following latex
should be rendered in the html as
but is instead being rendered as
See here for a live html with more examples. These changes are up to date on my project repo (md is here).
I thought maybe the issue was being caused by incorrect parsing of the double forward slash
\\
, but as you'll see on my html I tested general multi line equations and it renders correctly. The issue best I can tell is restricted to piecewise functions wrapped in the\begin{cases}
environment.Let me know if I can provide any other helpful info.
The text was updated successfully, but these errors were encountered: