biaslab / hugo-academic-group

An academic group website theme for Hugo.
MIT License
54 stars 18 forks source link

Setup proper syntax highlighting for Julia in converted notebooks #1

Closed ivan-bocharov closed 4 years ago

ivan-bocharov commented 8 years ago

Even though that, in general, highliting Julia code in blog posts now works properly, the converted Jupyter notebooks suffer from language detection in the highlight.js library. The results of cell evaluation get improper highlighting (for numbers the library tries to use css highlighting, etc).

bauglir commented 8 years ago

Could this be solved by explicitly annotating the violating codeblocks with a julia class?

ivan-bocharov commented 8 years ago

@bauglir This can be solved by explicit annotations, but if the notebook is large enough, it can easily be dozens of cells. I think there should be a more automated solution for that.

bauglir commented 8 years ago

Sure, I was already expecting such a step would be necessary. Probably too much effort for too little gain at the moment.