List for cgit developers and users
 help / color / mirror / Atom feed
* Table of Contents links using the format #link are not followed
@ 2018-08-25  7:39 actionmystique
  0 siblings, 0 replies; 4+ messages in thread
From: actionmystique @ 2018-08-25  7:39 UTC (permalink / raw)


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>


^ permalink raw reply	[flat|nested] 4+ messages in thread
* Table of Contents links using the format #link are not followed
@ 2018-07-06  9:56 actionmystique
  2018-07-13 16:14 ` list
  0 siblings, 1 reply; 4+ messages in thread
From: actionmystique @ 2018-07-06  9:56 UTC (permalink / raw)


Ubuntu 18.10
cgit commit 22583c4
git 2.18.0-1

For instance, the following table of contents successfully tested on gitlab
is useless on cgit:
## Table of Contents

  + [Drive Repository Contents](#drive-repository-contents)
  + [Features](#features)
...

## Drive Repository Contents

...

## Features

Clicking on one of the table of contents link should redirect the user to
the corresponding paragraph, but it does not.
Either I'm missing something, or that feature is not implemented (yet?), or
there is some kind of issue.

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-08-25  7:39 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-25  7:39 Table of Contents links using the format #link are not followed actionmystique
  -- strict thread matches above, loose matches on Subject: below --
2018-07-06  9:56 actionmystique
2018-07-13 16:14 ` list
2018-07-13 16:39   ` 

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).