Describe your proposed improvement and the problem it solves.
Hey, as mentioned in #11371 (comment), it would be great if the new pandoc.with_state function raises an error for invalid inputs. In my case I accidentally wrote resource_paths instead of resource_path and it took me a while to find my mistake.
Alternatively, a warning could be raised.
PS: Thanks again for pandoc!