timdp/swirly

Broken operator rendering

demensky opened this issue · 5 comments

Code example:

-1-2-3-4-5-|

> tmp(()=>`--|`)

The operator is rendered empty (in SVG also):

diagram


Code example (spaces around =>):

-1-2-3-4-5-|

> tmp(()=>`--|`)

SVG becomes invalid:

Снимок экрана 2022-07-01 в 00 06 30


Can be reproduced at https://swirly.dev/.

timdp commented

Odd, it works for me.

  is a non-breaking space. Swirly replaces regular spaces with non-breaking ones so spaces around observables don't get collapsed. However, it should insert the literal character rather than the named entity code.

This might be browser-specific. I'll experiment with it tomorrow. I might use <pre> instead, so the non-breaking spaces aren't necessary.

I described incorrectly. This problem appears while downloading.

timdp commented

Ah, interesting. I'll look into it.

2022-07-01.00.25.42.mov
timdp commented

This should now be fixed on swirly.dev!