Markup: unable to render '<'
When turning on pango HTML markup I'm unable to render '<' (left bracket). Even trying to escape it with a backslash doesn't work.
The easiest way for me to test this was with imagemagick:
❯ convert -background lightblue -fill blue -pointsize 72 pango:'<' label.gif
(process:8361): Pango-WARNING **: 12:47:14.208: pango_layout_set_markup_with_accel: Error on line 1 char 12: “<” is not a valid name
convert: Error on line 1 char 12: “<” is not a valid name `<' @ error/pango.c/ReadPANGOImage/372.
convert: negative or zero image size `<' @ error/image.c/SetImageExtent/2660.
convert: no images defined `label.gif' @ error/convert.c/ConvertImageCommand/3322.
❯ convert -background lightblue -fill blue -pointsize 72 pango:'\<' label.gif
(process:8390): Pango-WARNING **: 12:48:09.056: pango_layout_set_markup_with_accel: Error on line 1 char 12: “<” is not a valid name
convert: Error on line 1 char 12: “<” is not a valid name `\<' @ error/pango.c/ReadPANGOImage/372.
convert: negative or zero image size `\<' @ error/image.c/SetImageExtent/2660.
convert: no images defined `label.gif' @ error/convert.c/ConvertImageCommand/3322.
Originally reported here: https://github.com/dunst-project/dunst/issues/900
Edited by Friso Smit