How can I change the table of contents link to internal link? #105
slowdive14
started this conversation in
General
Replies: 1 comment 1 reply
-
Links are converted to "external links" (links that open in a new tab/window) in this function: You could ignore links in tables of contents by adding the class of the div that contains the links in the table of contents in this line: Essentially, because your links have the -parsed_doc.css("a:not(.internal-link):not(.footnote):not(.reversefootnote)").each do |link|
+parsed_doc.css("a:not(.internal-link):not(.footnote):not(.reversefootnote):not(.md-toc-inner)").each do |link| |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
As in Footnote, I want to make the link in the table of contents an internal link, but I don't know how.
The pages that are struggling with the table of contents are as follows.
I'm sorry if I missed the same question.
Please help me.
Beta Was this translation helpful? Give feedback.
All reactions