slang icon indicating copy to clipboard operation
slang copied to clipboard

Backslash handling

Open amadanmath opened this issue 5 years ago • 1 comments

javascript:
  let foo = "bar\nbaz";

currently erroneously renders as

  let foo = "bar
baz";

I believe the backslash in HTML (or JavaScript) should be passed literally, not interpreted as string escape by Crystal, except inside Crystal interopolation #{...}.

amadanmath avatar Dec 14 '18 11:12 amadanmath

You're right.

I'm not sure when I'll get to it though. PRs are welcome!

jeromegn avatar Dec 14 '18 14:12 jeromegn