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?
I noticed that code syntax is not highlighted, even within markdown cells like
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?