In my notebooks I sometimes have
from IPython.display import display, HTML
...
display(HTML('<h3>The %s is important!</h3>'%question_of_the_day))
...
but when I later convert the notebook to .pdf (with the intermediate step of a LaTeX file) what I get in the .pdf is just
<IPython.core.display.HTML object>
My question is, is it possible to convince jupyter nbconvert --to pdf ... (and ultimately to convince pandoc) to convert the snippet of HTML code
that I had programmatically inserted in an output cell?