klakegg / docker-hugo

Truly minimal Docker images for Hugo open-source static site generator.
https://hub.docker.com/r/klakegg/hugo/
MIT License
390 stars 69 forks source link

Please add another syntax highlighters #44

Closed aetos382 closed 3 years ago

aetos382 commented 3 years ago

Thank you for providing such a helpful image.

Could you please consider adding pygments or rouge to this image?

I'm using Hugo and AsciiDoc to create a site. AsciiDoctor supports the following code highlighters.

This image contains coderay, which doesn't support as many languages as the other highlighters. For example, coderay cannot highlight C# or PowerShell, which I would like to use. So, I would like to use pygments or rogue.

Thank you very much.

klakegg commented 3 years ago

Thank you for bringing this to my attention. The inclusion of Coderay is based on my personal choice and is a reflection of my needs. I've had a look at highlightjs, which requires Asciidoctor.js, and pygments, which requires Python 2, and my conclusion at this point is to add Rouge in the release bundling Hugo 0.82.0.

I guess adding support for Asciidoctor.js may be of interest at some point, I notice a lot of stuff is happening in that space, however that must be for another issue. :smile:

I hope you find my resolution satisfying.

aetos382 commented 3 years ago

Thank you so much!