Skip to content

Latest commit

 

History

History
15 lines (8 loc) · 1.67 KB

need-help.md

File metadata and controls

15 lines (8 loc) · 1.67 KB

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

Where Do I need help?

  • 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 actual reveal-code-focus.js file as a plugin (could not change that iife function to the form similar to the form shown in the case of attribution.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.

Changes I have made mainly

  • 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 in reveal-code-focus.js, so that it works with the highlight.js file shipped with quarto.

  • There was some problem with source code line numbers. Because since an extra span with class line gets added, existing css for showing line number was not working. So I have changed that a bit in custom.scss.

Thanks.