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

Invisible words when using Markdown explanation in a node #1540

Closed
Necior opened this issue Aug 8, 2023 · 2 comments · Fixed by #1543
Closed

Invisible words when using Markdown explanation in a node #1540

Necior opened this issue Aug 8, 2023 · 2 comments · Fixed by #1543

Comments

@Necior
Copy link

Necior commented Aug 8, 2023

Steps to reproduce

  1. Open https://play.d2lang.com;
  2. Paste the following snippet in the editor:
example: {
  explanation: |md
    *one* __two__ three!
  |
}
  1. Compile the diagram.

Observed behavior

The following image gets rendered:

image

Please note that the word "three" is not visible in the picture.

Expected behavior

The word "three" is visible in the picture.

Additional comments

I've observed the same behavior in every available engine (Dagre, ELK, TALA). I've tried using D2 locally (with version 0.4.2). The result is the same.

What is more, please note that changing "three" to a longer string (e.g. "threeeeeeee") will make the resulting node wider while the word is still invisible:

image

@cyborg-ts cyborg-ts added this to D2 Aug 8, 2023
@bo-ku-ra
Copy link
Contributor

bo-ku-ra commented Aug 8, 2023

this is a strange specification for the D2 and has not been improved. (#1431)
i add "<br/>" to get around this.
i do not know why.

https://play.d2lang.com/?script=Sq1IzC3ISbVSqOZSUEitKMhJzEsEhaGVQk1uCpeCgoKCVn5eqpZCfHxJeX58vEJJRlFqqiJYwiapSN-OS0GhhquWCxAAAP__&

@alixander alixander mentioned this issue Aug 8, 2023
@alixander
Copy link
Collaborator

@Necior appreciate the 💯 bug report!

@github-project-automation github-project-automation bot moved this to Done in D2 Aug 8, 2023
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

Successfully merging a pull request may close this issue.

3 participants