vlunot / nb2hugo

A Jupyter notebook to Hugo markdown converter
MIT License
44 stars 9 forks source link

How to highlight code syntax #1

Closed pedrohnv closed 4 years ago

pedrohnv commented 4 years ago

I noticed that code syntax is not highlighted, even within markdown cells like

def foo(x):
    return x**2

I think it might be related to a limitation of both Markdown and hugo, but it can be done using HTML (see this SO answer). From what I've tested, this seems unrelated to the hugo theme being used.

I am wondering how to highlight code syntax with nb2hugo. Could you give me some ideas?

pedrohnv commented 4 years ago

I've been reading Hugo Syntax Highlighting. This issue is unrelated to nb2hugo. I just need to learn how to tweak the site configuration.