I am trying to use HTMLLabel. I was expecting that if using html tags in the text string, that the text would be rendered according to the tags. When I tried (basic example below), the tags are shown as if they are part of the string, and the label style does not render according to the tags.
from bokeh.plotting import figure, show
from bokeh.models import HTMLLabel
p = figure(width=400, height=400)
label = HTMLLabel(x=220,y=200,x_units='canvas',y_units='canvas',text="<h1>header 1</h1>")
p.add_layout(label)
label = HTMLLabel(x=200,y=100,x_units='canvas',y_units='canvas',text="<h3>header 3</h3>")
p.add_layout(label)
show(p)
the following is my bokeh info
results
Python version : 3.10.0 (default, Nov 14 2021, 21:28:14) [Clang 11.0.3 (clang-1103.0.32.62)]
IPython version : 8.15.0
Tornado version : 6.3.3
Bokeh version : 3.3.0
BokehJS static path : /Users/lustiga/.local/share/virtualenvs/pyControl_official-H2ResLOC/lib/python3.10/site-packages/bokeh/server/static
node.js version : v20.1.0
npm version : 9.6.4
Operating system : macOS-10.16-x86_64-i386-64bit