Description
A bookdown chapter with the lone content below triggers the error below that. It requires the div be named "solution" and there to be a button inside (this is created by a function from the webex package that is made for use with bookdown, so is actually causing a lot of problems).
<div class='solution'>
<button>Solution</button>
</div>
Error running filter /Library/Frameworks/R.framework/Versions/4.1/Resources/library/bookdown/rmarkdown/lua/custom-environment.lua:...es/library/bookdown/rmarkdown/lua/custom-environment.lua:183: bad argument #1 to 'insert' (table expected, got nil)stack traceback: [C]: in function 'pandoc.List.insert' ...es/library/bookdown/rmarkdown/lua/custom-environment.lua:183: in function 'Div'Error: pandoc document conversion failed with error 83
See https://twitter.com/chrisderv/status/1402323292430770178 by @cderv