With that at the very top of the function (sorry forgot about that):

~~~c
struct html_renderopt *options = opaque;
~~~