-
Notifications
You must be signed in to change notification settings - Fork 132
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
Update docs for relative intra-site links support #888
Comments
I can't reproduce this issue in v2.5.1 |
@sijie123 do you remember the details of this issue? |
This issue probably flares up only when an |
I can't seem to reproduce the said problem; was it fixed 'accidentally'? 🤔 I remember we decided at the time this was a hard problem to solve though. |
This problem should have been fixed in #826. Somehow we forgot to resolve the issue when the PR was merged. The final solution was to go the hard route and change our parser. If I recall correctly, I wrapped a hidden div around every instance of If The new behaviour is that we wrap an invisible div that keeps track of where the target code is. Now, a is aware that it included "sub_folder/b", which itself includes "sub_folder/c". As a result, the |
Fantastic! 🎉 thanks for the fix and the explanation @sijie123 @alyip98 @openorclose Sorry about the false alarm. See if any of the explanation above can be incorporated into code comments to aid future devs. We can also update user docs. Due to way the examples are given in the current docs, it may appear (at first glance) that markbind syntax needs to be absolute and html links can be relative. |
Current:
<img src="images/createNewProject.png">
![](images/createNewProject.png)
(but this works
![]({{ baseUrl }}/images/createNewProject.png)
)Suggestion: support relative URLs for the latter as well.
Note: this is a left-over from #677
UPDATE: as mentioned in the thread below, the issue has been resolved. Just need to update docs a bit.
The text was updated successfully, but these errors were encountered: