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

handle equal signs in link element's text #72

Merged
merged 1 commit into from
Oct 12, 2023

Conversation

shlomif
Copy link
Contributor

@shlomif shlomif commented Apr 11, 2022

No description provided.

@mojavelinux
Copy link
Member

The correct solution here is to enclose the linked text in double quotes. In other words:

https://example.org["foo=bar"]

@shlomif
Copy link
Contributor Author

shlomif commented Apr 11, 2022

The correct solution here is to enclose the linked text in double quotes. In other words:

https://example.org["foo=bar"]

what if it already contains them?

@mojavelinux
Copy link
Member

Then they would have to be escaped using a backslash.

https://example.com["foo=\"bar\""]

@shlomif
Copy link
Contributor Author

shlomif commented Apr 11, 2022 via email

@mojavelinux
Copy link
Member

The attribute list parsing is described in detail on the following page in the docs: https://docs.asciidoctor.org/asciidoc/latest/macros/link-macro-attribute-parsing/

@mojavelinux mojavelinux merged commit 67bc9c0 into asciidoctor:master Oct 12, 2023
2 checks passed
@mojavelinux
Copy link
Member

Thanks!

@shlomif
Copy link
Contributor Author

shlomif commented Oct 12, 2023

@mojavelinux : thanks - and - yw

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants