From 29c46fb82d42adfab4f4a94393c2beba16803677 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Mon, 3 Nov 2025 10:57:41 -1000 Subject: [PATCH] Add support for more doxygen tags --- support/python/mkdocstrings_handlers/cxx/__init__.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/support/python/mkdocstrings_handlers/cxx/__init__.py b/support/python/mkdocstrings_handlers/cxx/__init__.py index 85d52a58..64f9aea6 100644 --- a/support/python/mkdocstrings_handlers/cxx/__init__.py +++ b/support/python/mkdocstrings_handlers/cxx/__init__.py @@ -35,7 +35,9 @@ tag_map = { 'computeroutput': 'code', 'para': 'p', 'programlisting': 'pre', - 'verbatim': 'pre' + 'verbatim': 'pre', + 'itemizedlist': 'ul', + 'listitem': 'li' } # A map from Doxygen tags to text. @@ -54,9 +56,12 @@ def doxyxml2html(nodes: List[ElementTree.Element]): out = '' for n in nodes: tag = tag_map.get(n.tag) - if not tag: + if tag: + out += '<' + tag + '>' + elif n.tag == 'ulink': + out += '' + else: out += tag_text_map[n.tag] - out += '<' + tag + '>' if tag else '' out += '' if tag == 'pre' else '' if n.text: out += escape_html(n.text)