<feed xmlns='http://www.w3.org/2005/Atom'>
<title>cgit.git/filters/about-formatting.sh, branch main</title>
<subtitle>sl0p fork of cgit — readme-on-summary patch</subtitle>
<id>https://git.sl0p.foo/cgit.git/atom/filters/about-formatting.sh?h=main</id>
<link rel='self' href='https://git.sl0p.foo/cgit.git/atom/filters/about-formatting.sh?h=main'/>
<link rel='alternate' type='text/html' href='https://git.sl0p.foo/cgit.git/'/>
<updated>2026-07-18T19:31:00Z</updated>
<entry>
<title>md2html: render linked .md via the about view, fix relative base</title>
<updated>2026-07-18T19:31:00Z</updated>
<author>
<name>Jason A. Dönerfield</name>
<email>no-replay@sl0p.foo</email>
</author>
<published>2026-07-18T19:07:20Z</published>
<link rel='alternate' type='text/html' href='https://git.sl0p.foo/cgit.git/commit/?id=e3364e2c4424b373f80ac04d1ab2e3f3d82328e1'/>
<id>urn:sha1:e3364e2c4424b373f80ac04d1ab2e3f3d82328e1</id>
<content type='text'>
Links to markdown files now point at /&lt;repo&gt;/about/&lt;path&gt; (rendered
through the about-filter) instead of /&lt;repo&gt;/tree/&lt;path&gt; (raw blob), so
clicking a README link to another .md shows rendered markdown.

Also resolve relative links against the rendered file's own directory:
about-formatting.sh now forwards the filename cgit passes ($1) to
md2html as argv[1], and md2html uses dirname(argv[1]) as the base. This
makes links *inside* a rendered subpage (docs/foo.md -&gt; ./bar.md,
../README.md, images) resolve correctly. Non-markdown files and
directories still go to tree/; images to plain/; about/ links carry no
?h= since the about view renders against the configured readme ref.
</content>
</entry>
<entry>
<title>about-formatting.sh: comment text out of date</title>
<updated>2015-11-12T03:44:32Z</updated>
<author>
<name>Jason A. Donenfeld</name>
<email>Jason@zx2c4.com</email>
</author>
<published>2015-11-12T03:44:32Z</published>
<link rel='alternate' type='text/html' href='https://git.sl0p.foo/cgit.git/commit/?id=ffe09621f2626c692a16b249a52112ba8070aa79'/>
<id>urn:sha1:ffe09621f2626c692a16b249a52112ba8070aa79</id>
<content type='text'>
</content>
</entry>
<entry>
<title>match other common markdown file extensions</title>
<updated>2014-12-24T02:10:11Z</updated>
<author>
<name>Chris Burroughs</name>
<email>chris.burroughs@gmail.com</email>
</author>
<published>2014-07-17T13:44:13Z</published>
<link rel='alternate' type='text/html' href='https://git.sl0p.foo/cgit.git/commit/?id=62affc0e91f3f322f0b7c27f67f527845e857c82'/>
<id>urn:sha1:62affc0e91f3f322f0b7c27f67f527845e857c82</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fix about-formatting.sh</title>
<updated>2014-01-08T15:46:51Z</updated>
<author>
<name>Přemysl Janouch</name>
<email>p.janouch@gmail.com</email>
</author>
<published>2013-09-11T18:10:11Z</published>
<link rel='alternate' type='text/html' href='https://git.sl0p.foo/cgit.git/commit/?id=f1fb521a0510cebb4971adf86de39d01cc316df2'/>
<id>urn:sha1:f1fb521a0510cebb4971adf86de39d01cc316df2</id>
<content type='text'>
dash failed to parse the script.

Signed-off-by: Přemysl Janouch &lt;p.janouch@gmail.com&gt;
</content>
</entry>
<entry>
<title>filters: import more modern scripts</title>
<updated>2013-05-27T19:54:16Z</updated>
<author>
<name>Jason A. Donenfeld</name>
<email>Jason@zx2c4.com</email>
</author>
<published>2013-05-27T19:39:43Z</published>
<link rel='alternate' type='text/html' href='https://git.sl0p.foo/cgit.git/commit/?id=8149be213f1c8f52b0dbe6c213f6073af57fa954'/>
<id>urn:sha1:8149be213f1c8f52b0dbe6c213f6073af57fa954</id>
<content type='text'>
Signed-off-by: Jason A. Donenfeld &lt;Jason@zx2c4.com&gt;
</content>
</entry>
</feed>
