Closed d-torrance closed 3 years ago
HREF should be given just 2 arguments, and they should both be strings. The first is the URL, and the second is something to display instead of the URL. So the problem goes back to commit 17fcfe4bee.
It looks like HREF
's behavior changed to allow more arguments in https://github.com/Macaulay2/M2/commit/8bfd3ca68cbf1f793c93a2512d4a756452b3f7b7.
Why can't HREF contain other hypertext objects? In almost all places net
is trying to replicate how browsers present html
, so I would think the fix should be to put html r
instead here:
https://github.com/Macaulay2/M2/blob/2a7d81a7f4443b855de7f095a8b51ab4ce3c956c/M2/Macaulay2/m2/html.m2#L140
Why can't HREF contain other hypertext objects? In almost all places
net
is trying to replicate how browsers presenthtml
, so I would think the fix should be to puthtml r
instead here: https://github.com/Macaulay2/M2/blob/2a7d81a7f4443b855de7f095a8b51ab4ce3c956c/M2/Macaulay2/m2/html.m2#L140
Okay, yes, I think you're right.
net HREF
ignores all arguments after the second and doesn't properly format the arguments it doesn't ignore:This is visible when you run
help
on a package with a gold star, e.g., fromhelp "Cremona"
. See the link to the git repository in the final sentence: