You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
MDX loader: linkify should process the md AST instead of the md string #9048
The linkify process that turns [link](./xyz.md) to [link](/baseUrl/xyz-pathname) is based on string manipulations and regexes.
As a result, linkify has many edge case bugs related to the unability to properly resolve markdown relative file path links such as [](./relative-path.md)
We should instead do this with a Remark plugin after MDX has parsed the string.
Another case reported where markdown links resolution fails due to usage of inline code blocks with triple backticks (TIL this exists and is supported by MDX 😅). #9876
Activity
Josh-Cena commentedon Jun 8, 2023
See previous attempt: #6261
slorber commentedon Jan 9, 2024
Another case it would fix is a bug when using relative md links on markdown images:
Only the first link resolves.
But reported here: #9720 (comment), that should also be solved by this proposed solution.
slorber commentedon Feb 22, 2024
Another case reported where markdown links resolution fails due to usage of inline code blocks with triple backticks (TIL this exists and is supported by MDX 😅). #9876
slorber commentedon Apr 25, 2024
Another use-case reported is when the link is multi-line:
#9636
#10067
slorber commentedon Apr 25, 2024
Another use-case reported is when the link contains certain combinations of symbols:
#9518
#9553
#10072
pellyadolfo commentedon May 16, 2024
slorber commentedon May 17, 2024