Firstly, I would like to know whether it is useful as custom format. If not, I need help to convert this as a revealjs plugin quarto extension.
You can view live demo of rendered document here
- I have tried to implement
reveal-code-focus
as a plugin at first, but sadly enough (I tried for hours (actually the whole day)) but my newbie rusty javascript knowledge would not allow me to convert the actualreveal-code-focus.js
file as a plugin (could not change thatiife
function to the form similar to the form shown in the case ofattribution.js
in the docs). So I resorted to implement this as a custom format. Therefore I need help to convert this as a quarto revealjs plugin extension.
-
One important thing, even though in the
reveal-code-focus
docs, original highlight.js is suggested to use, I have not used that. Instead changed the code inreveal-code-focus.js
, so that it works with thehighlight.js
file shipped with quarto. -
There was some problem with source code line numbers. Because since an extra
span
with classline
gets added, existing css for showing line number was not working. So I have changed that a bitin custom.scss
.
Thanks.