Skip to content

Raw HTML in a <div> with class "solution" causes a Lua filter error #1172

Open
@debruine

Description

@debruine

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugan unexpected problem or unintended behavior

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions