Table of Contents links using the format #link are not followed

jean-christophe manciot actionmystique at gmail.com
Sat Aug 25 09:39:04 CEST 2018


Christian Hesse (list at eworm.de) has brilliantly added this feature with the
patch available here
<https://git.zx2c4.com/cgit/diff/filters/html-converters/md2html?h=ch/anchorlinks&id=42e70dcbe84e128ba23a25918e3d5d9aac656dc6>
.
It allows you to:
- add your own static table of contents and the links now point to the
right paragraph
- or add a [TOC] marker anywhere in the markdown file and let cgit
dynamically build your table of contents

I was able to test the about link with a toc having up to 5 levels of
indentation, which is much more than Gitlab is able to do (2).

Very nice ;-)

N.B: I have just realized that a copy of this message has been originally &
mistakenly sent as an answer to another thread. Sorry guys.

-- 
Jean-Christophe
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.zx2c4.com/pipermail/cgit/attachments/20180825/2b63c6b3/attachment.html>


More information about the CGit mailing list