Is your feature request related to a problem? Please describe.
Ansimarkup (currently used) crashes when it encounters unknown markup tags (typically XML).
I've opened an issue more than one year ago but didn't get feedback from the maintainer (https://github.com/gvalkov/python-ansimarkup/issues/17).
Is your feature request related to a problem? Please describe. Ansimarkup (currently used) crashes when it encounters unknown markup tags (typically XML). I've opened an issue more than one year ago but didn't get feedback from the maintainer (https://github.com/gvalkov/python-ansimarkup/issues/17).
Describe the solution you'd like A solution would be to switch to Rich which provides an
escape
method: https://rich.readthedocs.io/en/stable/reference/markup.html#rich.markup.escape. It also uses[]
instead of<>
so would not have any problems with XML in the output.Describe alternatives you've considered Implementing an
escape
function in Ansimarkup.Additional context Rich would also allow much more rich (pun intended) formats.