Repository navigation
Markdown Lists are broken in Doxygen #72
Replies: 1 comment
|
Thanks for bringing this up. This topic is complicated, and this is going to require some more discussion and careful consideration of the existing code to find a good solution. One challenge is that Doxygen is not a single format. It's a standard that allows comments to be formatted in various ways (markdown, javadoc, html, xml). Rewrap was never intended to support the full Doxygen standard. Instead, there are three separate parsers that are used for C and C++ comments depending on how those comments are styled.
Multiple parsers cannot work simultaneously for the same comment style. Only one can be active, and it's currently hardcoded and not user-configurable. Solution IdeasIt would be great to have a Doxygen parser that can handle every format gracefully, but that is likely complex to implement properly. Also I'm not even sure if this would handle all the ways that people write doc comments in C and C++. Surely there are some other standards as well. Another solution would be to just switch back to javadoc/markdown style for all C/C++ doc comments regardless of the comment style. This would amount to reverting stkb#199, which I'm hesitant to do without learning more about comment formatting conventions. Alternatively this could made user-configurable. You just select what parser you want to use for C and C++ doc comments, with the two current options being the javadoc/markdown parser and the xml parser. This may be the easiest approach to satisfy everyone today, but I'd like to avoid adding too many knobs if there's a way to satisfy everyone without needing extra configuration. I'm afraid the sane defaults may still be format-specific, which would add another dimension of complexity to the configuration. I'm also open to other ideas. |
Uh oh!
There was an error while loading. Please reload this page.
Thank you for your useful tool.
The following Doxygen style for C++ does not get formatted correctly:
It ends up looking like this:
Which makes it hard to reformat the docs for a number of functions all at once.
Doxygen Native Commands are old and tired. Markdown is shiny and new. Please enable Markdown formatting in Doxygen comments. There could always be an option to turn it off.
All reactions