d2 icon indicating copy to clipboard operation
d2 copied to clipboard

Certain characters breaking display

Open IlanCosman opened this issue 1 year ago • 1 comments

The following code using ascii 254 (■) doesn't display "bar".

legend: |md
  ■ foo bar
|

https://play.d2lang.com/?script=yklNT81LsVKoyU3hUlB4NG2BQlp-vkJSYhFXDRcgAAD__w%3D%3D&

image

If we replace the square with a traditional character like "a", it works.

legend: |md
  a foo bar
|

https://play.d2lang.com/?script=yklNT81LsVKoyU3hUlBIVEjLz1dISiziquECBAAA__8%3D&

image

IlanCosman avatar Jan 22 '24 00:01 IlanCosman

this is weird https://play.d2lang.com/?script=ejRtgZVCTW4Kl4LCo2kLFNLy8xWSEou4argeTVuIkFiILDG9Hy4xvR9Fohsh0Y0i0YaQaEORaEdItKNYvglh-SYUic0Iic0oEnsQEntQJPYiJPYiSzTshks07EZxVR9E4tH0PiRhQAAAAP__&

on windows, this is different results between firefox and edge.

edge image

firefox image

bo-ku-ra avatar Jan 22 '24 02:01 bo-ku-ra

thank you @IlanCosman for raising the issue and thanks @bo-ku-ra as always for the thorough test cases

alixander avatar Sep 16 '24 16:09 alixander