List for cgit developers and users
 help / color / mirror / Atom feed
From: actionmystique at (jean-christophe manciot)
Subject: How to apply to appropriate tree files
Date: Thu, 16 Aug 2018 10:35:04 +0200	[thread overview]
Message-ID: <> (raw)
In-Reply-To: <>

Christian Hesse (list at has brilliantly added this feature with the
patch available here
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 ;-)

On Sat, Aug 11, 2018 at 3:11 PM John Keeping <john at> wrote:

> On Sat, Aug 11, 2018 at 01:51:09PM +0200, jean-christophe manciot wrote:
> > I could not find a way with v1.2.1 to get any markdown/html files
> formatted
> > correctly when read from the tree.
> > I already successfully use the
> > "about-filter=/usr/local/lib/cgit/filters/" setting in
> > /etc/cgitrc, but it only pertains to the about page.
> > How can we use this filter for all appropriate tree files?
> This is not currently supported.
> Some patches were posted a little while ago [1] which add this feature,
> but they're not quite ready to be integrated yet.
> The best summary of where we want to go is [2].
> [1]
> [2]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

      reply	other threads:[~2018-08-16  8:35 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-08-11 11:51 actionmystique
2018-08-11 13:11 ` john
2018-08-16  8:35   ` actionmystique [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='' \ \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).