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

Math equation inside table breaks all relative links #1750

Open
JJCUBER opened this issue Nov 18, 2023 · 1 comment
Open

Math equation inside table breaks all relative links #1750

JJCUBER opened this issue Nov 18, 2023 · 1 comment

Comments

@JJCUBER
Copy link

JJCUBER commented Nov 18, 2023

When in the readme of a repository, adding any math/LaTeX equation (anything which uses $'s) within a table breaks all the relative links inside the table. If the repository is called repo, then the links resolve to .../username/file_name, when they normally resolve to .../username/repo/blob/main/file_name. (This results in a not found.)

The layout of the tables that work vs tables that don't are as follows (note that the link resolving is different on an issues tab vs within a repository's top-level readme, so the links will not seem different within this issue):

1 2
notes a = b

image

1 2
notes $a = b$

image


I made the issue on this repository because this seems to most likely be an issue related to the autolinking step of GitHub Markup. I wonder if the autolinking-related step skips over processing the entire table's html, since it is known to be modified by MathJax.

@JJCUBER
Copy link
Author

JJCUBER commented Nov 18, 2023

Upon further inspection, this seems to also occur outside of a table if the equation is on the same line as a link (such as [link](filename) $eqn$).

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

No branches or pull requests

2 participants
@JJCUBER and others