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

ReverseAdoc: When an <a> element has only an HTTP link but no text, do not render empty [] #108

Open
ronaldtse opened this issue Jun 25, 2024 · 2 comments

Comments

@ronaldtse
Copy link
Contributor

The green is wrong and red is right.

image
@hmdne
Copy link
Contributor

hmdne commented Jun 29, 2024

There is a heuristic to detect text to the right. In some cases, not adding [] may lead to broken link. We could either add [] or a space, the space would lead to an additional space. I believe the example you have shown is a case of this, since this is a unicode parenthesis and it would embed a parenthesis into the link, breaking the link.

@ronaldtse
Copy link
Contributor Author

I believe the example you have shown is a case of this, since this is a unicode parenthesis and it would embed a parenthesis into the link, breaking the link.

This is an interesting case. I'm not sure what is the best way to handle this.

@github-project-automation github-project-automation bot moved this to 🆕 New in Metanorma Jul 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 🆕 New
Development

No branches or pull requests

2 participants