tlienart / Franklin.jl

(yet another) static site generator. Simple, customisable, fast, maths with KaTeX, code evaluation, optional pre-rendering, in Julia.
https://franklinjl.org
MIT License
953 stars 112 forks source link

Add extra css class to the output of code #531

Open findmyway opened 4 years ago

findmyway commented 4 years ago

This will allow users to apply different css style to distinguish the input and output of code snippets, and maybe even add numbering to each code snippets.

I guess modifying https://github.com/tlienart/Franklin.jl/blob/5eaac6ecf99535f8423147c6b6c336605afec40d/src/converter/latex/io.jl#L106 a little would be enough?

tlienart commented 4 years ago

Probably just adding a keyword argument to html_code should be enough; I’ll look into it, thanks for bringing this up! And if we want to add numbering to executable cells as well as output then we should also add a class to those, same process though, not very hard :)