cubing / cubing.js

🛠 A library for displaying and working with twisty puzzles. Also currently home to the code for Twizzle.
https://js.cubing.net/cubing/
GNU General Public License v3.0
245 stars 44 forks source link

`<twizzle-link>` loses newlines in the setup field #264

Open lgarron opened 1 year ago

lgarron commented 1 year ago

Steps to reproduce the issue

  1. Paste https://alpha.twizzle.net/edit/?alg=R%0AR%0AR%0AR&setup-alg=R+%2F%2F+first+line%0AR+%2F%2F+second+line%0AR%0AR into a speedsolving.com post editor and preview.

Observed behaviour

Newlines in the setup alg are lost, even after comments (where they are semantically critical).

🖼 Screenshots

Screenshot 2023-02-01 at 23 29 48

Expected behaviour

Newlines matching Twizzle

Environment

Chrome 109.0.5414.119 macOS 13.2

Additional info

No response