Oh ye Gods of Algorythms and Elegance, forgive me for I have sinned! This blog post shows how to have #cgit highlight source code and render Markdown. If you can read code, please don't click. If you host cgit, you might want to take a look?
https://alexschroeder.ch/wiki/2018-06-11_Highlighting_Code_and_Rendering_Markdown_for_cgit