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

Change in LaTeX rendering #2306

Closed
jmooring opened this issue Jan 27, 2025 · 2 comments
Closed

Change in LaTeX rendering #2306

jmooring opened this issue Jan 27, 2025 · 2 comments

Comments

@jmooring
Copy link

Tested LaTeX example from the documentation:
https://d2lang.com/tour/text/#latex

Something has changed since v0.6.8, and the change wasn't in the past couple of days.

Diagram markup

plankton -> formula: will steal
formula: {
  equation: |latex
    \\lim_{h \\rightarrow 0 } \\frac{f(x+h)-f(x)}{h}
  |
}

Expected (this is what was rendered with with 0.6.8):

Image

Actual:

Image

@cyborg-ts cyborg-ts added this to D2 Jan 27, 2025
@jmooring
Copy link
Author

Git bisect says a0c4da1 is the first bad commit.

@jmooring
Copy link
Author

Looking at a0c4da1 I can see we need to replace all instances of \\ with \. That's fine.

Please note the breaking change in the release notes for the next release.

I've submitted terrastruct/d2-docs#248 to update the documentation.

@github-project-automation github-project-automation bot moved this to Done in D2 Jan 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

No branches or pull requests

1 participant