GitbookIO / integrations

Toolkit to build integrations on GitBook
75 stars 42 forks source link

Github Files add code color option #403

Open DominicGBauer opened 7 months ago

DominicGBauer commented 7 months ago

Description

Github files just show a black and white copy of the code, it would be great if we could set language and then it would change the coloring of the code to match what happens when you use a code block.

I.e. instead of this

image

I can set it to Javascript and it then displays like this

image
DominicGBauer commented 7 months ago

It looks like this should already be enabled based on this https://github.com/GitbookIO/integrations/pull/194. Perhaps this is actually a bug @addisonschultz ?

addisonschultz commented 7 months ago

Hi @DominicGBauer - this does look like a bug right now, thank you for pointing this out! I'm going to leave this issue open for now, will try to get to this one soon!