jupyter-widgets-contrib / ipytree

A Tree Widget using Jupyter-widgets protocol and jsTree
MIT License
130 stars 27 forks source link

HTML elements in Node name render incorrectly #76

Open tylere opened 1 year ago

tylere commented 1 year ago

It is great that the Node widget accepts some HTML strings, which allows one to do simple text formatting (bold, italics, color) to improve readability. For example:

image

However, HTML elements that change the vertical placement of the text do not render as expected:

image

I would expect that the vertical placement of the Node icon would line up with the HTML text, and that the height of Nodes would change so that the text of Nodes would not overlap.

Notebook to reproduce: ipytree_html_bug.ipynb.txt