Markdown - rendering it like github's


I’m using caddy to serve markdown pages that have lots of code snippets (in shell, yaml, etc).

I was wondering if anyone has css files that would produce similar results to what github uses to render its pages (iirc it does syntax highlighting as well).

Sorry for the lazy question - afaics github’s css would not be a drop-in solution (also not sure about its license) and my css-foo is weak.



Here’s one with an MIT license:

There’s quite a few Google results for “github markdown css” that you might also be able to peruse and find something suitable.

1 Like

Thanks, Matthew.

I will test it with caddy and check if it needs to be modified (for different element names and usage).

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.