How to format the content of all markdown files, not just the about pages?

John Keeping john at keeping.me.uk
Sun Dec 23 16:43:38 CET 2018


On Sun, Dec 23, 2018 at 03:25:00PM +0100, jean-christophe manciot wrote:
> with the following setup, no markdown file is correctly formatted besides
> the about pages:
> *cgit 1.2.1-14-g55ebd5e*
> *git 1:2.20.1-1*
> in */etc/cgitrc*:
> -------------------------------------------------------------------------------------------------
> # Format markdown, restructuredtext, manpages, text files, and html files
> # through the right converters
> about-filter=/usr/local/lib/cgit/filters/about-formatting.sh
> 
> ## Search for these files in the root of the default branch of repositories
> ## for coming up with the about page:
> readme=:README.md
> -------------------------------------------------------------------------------------------------
> 
> The about pages are perfectly formatted, for instance here
> <https://git.sdxlive.com/DR/about/>.
> But any other markdown page is not formatted, for instance here
> <https://git.sdxlive.com/DR/tree/KVM-and-Manager/README.md>.
> Am I missing something or is this a missing feature?

It's not supported at the moment, although there have been various
patches posted to add support for rendered content in the tree view.

The most recent thread ends about here with a summary of the changes
needed to move forward:

https://lists.zx2c4.com/pipermail/cgit/2018-July/004127.html

I'd forgotten that this is still unresolved, so I may see if I have time
to pick it up again between now and the new year.


Regards,
John


More information about the CGit mailing list