<div dir="ltr"><h3 class="m_-2387007473169738696gmail-iw" style="overflow:hidden;white-space:nowrap;max-width:92%;font-size:0.75rem;margin:inherit;font-family:Roboto,RobotoDraft,Helvetica,Arial,sans-serif;letter-spacing:0.3px;color:rgb(95,99,104);line-height:20px"><span name="Christian Hesse" class="m_-2387007473169738696gmail-gD" style="font-weight:bold;color:rgb(32,33,36);font-size:0.875rem;display:inline;vertical-align:top;letter-spacing:0.2px;line-height:20px">Christian Hesse (</span><span style="font-weight:normal;color:rgb(85,85,85);font-size:12.8px"><a href="mailto:list@eworm.de">list@eworm.de</a></span>) <span name="Christian Hesse" class="m_-2387007473169738696gmail-gD" style="color:rgb(32,33,36);font-size:0.875rem;display:inline;vertical-align:top;letter-spacing:0.2px;line-height:20px;font-weight:normal">has brilliantly added this feature with the patch available <a href="https://git.zx2c4.com/cgit/diff/filters/html-converters/md2html?h=ch/anchorlinks&id=42e70dcbe84e128ba23a25918e3d5d9aac656dc6" target="_blank">here</a>.</span></h3><div><span name="Christian Hesse" class="m_-2387007473169738696gmail-gD" style="color:rgb(32,33,36);font-size:0.875rem;display:inline;vertical-align:top;letter-spacing:0.2px;line-height:20px;font-weight:normal">It allows you to:</span></div><div><span name="Christian Hesse" class="m_-2387007473169738696gmail-gD" style="color:rgb(32,33,36);font-size:0.875rem;display:inline;vertical-align:top;letter-spacing:0.2px;line-height:20px;font-weight:normal">- add your own static table of contents and the links now point to the right paragraph</span></div><div><span name="Christian Hesse" class="m_-2387007473169738696gmail-gD" style="color:rgb(32,33,36);font-size:0.875rem;display:inline;vertical-align:top;letter-spacing:0.2px;line-height:20px;font-weight:normal">- or add a [TOC] marker anywhere in the markdown file and let cgit dynamically build your table of contents</span></div><div><span name="Christian Hesse" class="m_-2387007473169738696gmail-gD" style="color:rgb(32,33,36);font-size:0.875rem;display:inline;vertical-align:top;letter-spacing:0.2px;line-height:20px;font-weight:normal"><br></span></div><div><span name="Christian Hesse" class="m_-2387007473169738696gmail-gD" style="color:rgb(32,33,36);font-size:0.875rem;display:inline;vertical-align:top;letter-spacing:0.2px;line-height:20px;font-weight:normal">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). </span></div><h3 class="m_-2387007473169738696gmail-iw" style="overflow:hidden;white-space:nowrap;max-width:92%;font-size:0.75rem;margin:inherit;font-family:Roboto,RobotoDraft,Helvetica,Arial,sans-serif;letter-spacing:0.3px;color:rgb(95,99,104);line-height:20px"><span name="Christian Hesse" class="m_-2387007473169738696gmail-gD" style="color:rgb(32,33,36);font-size:0.875rem;display:inline;vertical-align:top;letter-spacing:0.2px;line-height:20px;font-weight:normal"> </span></h3><div><span name="Christian Hesse" class="m_-2387007473169738696gmail-gD" style="color:rgb(32,33,36);font-size:0.875rem;display:inline;vertical-align:top;letter-spacing:0.2px;line-height:20px;font-weight:normal">Very nice ;-)</span></div></div><br><div class="gmail_quote"><div dir="ltr">On Sat, Aug 11, 2018 at 3:11 PM John Keeping <<a href="mailto:john@keeping.me.uk" target="_blank">john@keeping.me.uk</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Sat, Aug 11, 2018 at 01:51:09PM +0200, jean-christophe manciot wrote:<br>
> I could not find a way with v1.2.1 to get any markdown/html files formatted<br>
> correctly when read from the tree.<br>
> I already successfully use the<br>
> "about-filter=/usr/local/lib/cgit/filters/about-formatting.sh" setting in<br>
> /etc/cgitrc, but it only pertains to the about page.<br>
> How can we use this filter for all appropriate tree files?<br>
<br>
This is not currently supported.<br>
<br>
Some patches were posted a little while ago [1] which add this feature,<br>
but they're not quite ready to be integrated yet.<br>
<br>
The best summary of where we want to go is [2].<br>
<br>
[1] <a href="https://lists.zx2c4.com/pipermail/cgit/2018-June/003978.html" rel="noreferrer" target="_blank">https://lists.zx2c4.com/pipermail/cgit/2018-June/003978.html</a><br>
[2] <a href="https://lists.zx2c4.com/pipermail/cgit/2018-July/004127.html" rel="noreferrer" target="_blank">https://lists.zx2c4.com/pipermail/cgit/2018-July/004127.html</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="m_-2387007473169738696gmail_signature" data-smartmail="gmail_signature">Jean-Christophe</div>