gist-markdown-preview icon indicating copy to clipboard operation
gist-markdown-preview copied to clipboard

Adding Syntax highlighting

Open Dev-iL opened this issue 7 years ago • 1 comments

Hello Revath, Let me start by saying thank you for this tool!

I noticed that unlike markdown previews on GitHub "itself", which have syntax highlighting for fenced code blocks, when previewing with this tool we get no colors at all.

I assume that using GitHub's highlighting system is not possible since it requires some server-side actions (e.g. invoking Pygments), but there might be another way, which is what they use on StackOverflow - https://github.com/google/code-prettify.

Can this functionality be added?

Dev-iL avatar Aug 12 '18 06:08 Dev-iL

@Dev-iL Thanks for your kind words. As of now I am not familiar with code-prettify. If you can raise a PR adding this functionality. I am happy to merge it.

revathskumar avatar Aug 20 '18 17:08 revathskumar