md2html is inoperative
John Keeping
john at keeping.me.uk
Sat Jun 30 17:39:52 CEST 2018
On Thu, Jun 28, 2018 at 12:50:49PM +0200, jean-christophe manciot wrote:
> On Ubuntu 18.10 cosmic
> cgit 1.1+git2.10.2-3build1
> python3: 3.6.5-3
> python3-docutils: 0.14+dfsg-3
> python3-markdown: 2.6.9-1
> python3-pygments: 2.2.0+dfsg-1
>
> In /etc/cgitrc:
> about-filter=/usr/lib/cgit/filters/about-formatting.sh
>
> Despite that setting, the README.md file loaded from the <about> link is
> not formatted correctly. It seems that no conversion takes place.
Are you sure that there isn't a repo-specific override in place for the
about-filter? And that you're not seeing cached content immediately
after changing the setting?
You can test CGit from the command line to rule out a misconfiguration
in the web server:
CGIT_CONFIG=/etc/cgitrc cgit --query=url=repo/about/
> # about-formatting.sh README.md
Note that for testing you should try something like:
about-formatting.sh README.md <README.md
to check that python-markdown is invoked correctly.
More information about the CGit
mailing list