Closed andresf91 closed 2 years ago
Hi @andresf91,
Thanks for reporting this. It’s confirmed to be the case in gitbook. Gladly will accept your suggested solution if you have time and PR it, which sounds will solve it 👍🏻
The links still don't work for me on the gitbook page. With that I mean when clicking links in the "Table of Contents". Clicking on the links to the right works and it works while reading the README here on Github.
Using Chrome 98 on macOS 10.15.7:
Markdown headers create an anchor with the text of the link. However, GitHub and Gitbook render them differently. So links work on the former but do not on the latter.
GitHub renders the ## header with an anchor that does not include the dot in the list. Eg. ## 1. Processes -> "1-processes".
GitBook renders it with the dot. "## 1. Processes" -> "1.-processes".
There may not be a solution for both cases if there is a dot present in the header. Check my test in this fork: https://github.com/andresf91/linux-sysops-handbook/tree/andresf91-patch-1
A solution could be to replace the dots in the headers with a hyphen, like "1 - Processes" in the headers.