Open nomeata opened 1 week ago
I looked at this once before, for a similar issue.
In particular, the relevant code snippet is to replace encodeURIComponent(content)
in this line with a custom function that would also escape %28
and %29
.
I think I had a problem that even with this replacement the browser still changed it back, and I'm not sure if this is a browser feature (or Firefox specifically?) , or if I did something wrong. Maybe it's worth trying again!
I just had issues embedding a https://live.lean-lang.org/ url with a
code
parameter in markdown, presumably because the code contained a closing parenthesis, and thus the URL, and this confused the markdown parser.For example
I wonder if this problem would go away if lean4web would also URL-encode the parentheses, e.g.
These URLs already work, they just have to be generated as such.