Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Percent and ampersand signs in \href #9

Open
larsgw opened this issue Mar 31, 2023 · 2 comments
Open

Percent and ampersand signs in \href #9

larsgw opened this issue Mar 31, 2023 · 2 comments
Labels

Comments

@larsgw
Copy link
Contributor

larsgw commented Mar 31, 2023

Description

I think that URLs passed to the \href command do not need to escape % and & in actual LaTeX. However, this parser seems to interpret % as the start of a comment.

Possible Solution

Allow for verbatim command arguments, possibly. Not sure what the API for that would be. Or can comments still be rendered back to LaTeX?

Additional Context

I can add more information later if necessary.

@larsgw
Copy link
Contributor Author

larsgw commented Apr 13, 2023

Nevermind, there's parseArgs. I think that covers it.

@larsgw larsgw closed this as completed Apr 13, 2023
@xemlock
Copy link
Owner

xemlock commented Apr 13, 2023

Hi @larsgw,
Thanks for bringing that to my attention. At the moment of creating the issue it was not possible to handle % character in \href{} (and \url{}) in a special way (other than it being a part of the comment).

I've already made some adjustments to the lexer and parser to make this possible.

Let's leave this issue open, until I finish working on fixing it.

@xemlock xemlock reopened this Apr 13, 2023
@xemlock xemlock added the bug label Apr 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants