diff --git a/NEWS.md b/NEWS.md index 0cb5673..2bfd35b 100644 --- a/NEWS.md +++ b/NEWS.md @@ -4,6 +4,8 @@ * Setup blocks may now be attached to multiple exercises by providing a list for the `exercise` cell option. +* Reveal.js slides containing live cells are now automatically made scrollable (#67). + ## Breaking changes * Previously the cell option `autorun` defaulted to `true` for "sandbox" type cells, but `false` for exercises. This has been found to be confusing, and so `autorun: false` is now always the default state. Autorun may still be enabled by setting the cell option directly, or set document-wide using the `cell-options` YAML header. diff --git a/_extensions/live/live.lua b/_extensions/live/live.lua index f15ae22..08c29c6 100644 --- a/_extensions/live/live.lua +++ b/_extensions/live/live.lua @@ -272,7 +272,7 @@ function PyodideCodeBlock(code) append_ojs_template(ojs_source, ojs_vars) return pandoc.Div({ - pandoc.Div({}, pandoc.Attr("pyodide-" .. block_id)), + pandoc.Div({}, pandoc.Attr("pyodide-" .. block_id, { 'exercise-cell' })), pandoc.RawBlock( "html", "