jgraph / drawio-desktop

Official electron build of draw.io
https://www.diagrams.net
Apache License 2.0
49.59k stars 4.95k forks source link

Error in HTML for Ascii-Math help on https://www.diagrams.net/doc/faq/math-typesetting #602

Closed hugotoledo closed 2 years ago

hugotoledo commented 3 years ago

Preflight Checklist

Describe the bug When you click on Extras in the menu bar and click on the help icon, a question mark in a circle, at the end of the Mathematical Typesetting menu item, the web page https://www.diagrams.net/doc/faq/math-typesetting opens in your default browser. The first bullet point has bad HTML. It correctly shows you must enclose Ascii-Math equations with the ` character (i.e., the angled single quote typically found with the tilde character ~ on the top-left-most key on contemporary American computer keyboards. However, the code example is missing the delimiters.

To Reproduce Steps to reproduce the behavior:

  1. Go to https://www.diagrams.net/doc/faq/math-typesetting
  2. View the first bullet point
  3. The equation is NOT shown enclosed by the delimiter as it is in subsequent examples

Expected behavior You are shown this: AsciiMath between `, for example: a^2+b^2 = c^2

You should be shown this: AsciiMath between `, for example: `a^2+b^2 = c^2`

Screenshots

1) How I originally found the webpage. I clicked on the question mark in the circle:

diagram io Screenshot 2 of 4 - 2021-05-25 224123

2) I saw the first bullet point is incorrect, it doesn't show the example formula within the delimiters specified:

diagram io Screenshot 3 of 4 - 2021-05-25 224123

3) The HTML is missing the delimiters in the formula on the right. It is properly included in the first circled example on the left: diagram io Screenshot 4 of 4 - 2021-05-25 224123

draw.io version (In the Help->About menu of the draw.io editor):

Desktop (please complete the following information):

Additional context none

davidjgraph commented 2 years ago

Fixed, thanks for report.