New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Special command \snippet{doc}
apparently does not honor Markdown
#9365
Comments
Strange that the user on stackoverflow is linked to the user here. I did some tests on the following example:
A number of investigations already to some conclusions:
A small test example: example.tar.gz |
Thanks Albert. I actually already noticed something was wrong with Doxygen handling of |
I did some further tests and what you say doesn't seem completely true:
It's plainly seen "inline code" is rendered as code (monospaced font) while "snippet code" is left unchanged (variable pitch font and backticks). It seems to me we have two "bugs here:
Unfortunately I have no idea about how to further pursue issue. Note: as you may have guessed stackexchange user is actually me; this is my "official self". |
I did some tests and the result was that in the routine So either
@doxygen Do you see a solution? |
FYI: I moved to latest Doxygen (compiled from git master) and it seems to behave better as far as Markdown support is concerned, but has other "strange quirks" I'm still investigating:
|
From the short description it smells a bit like the same problem as with the regular text, but without an example it is hard to tell. |
Sorry @albert-github I installed from git master on a different machine (also Debian SId) my yest program is:
I call doxygen using this script:
This is what I see in PDF: Please advise because I'm completely out of my depth, here. |
It looks like these problems are not related to the
|
@albert-github, |
Regarding the
|
Was a separate issue filed for the LaTeX line spacing problem? I was going to use /snippet{doc} until I realized that it just mashes all text together on one gigantic line. Latest does not seem to resolve this problem. |
I think there was the separate issue #9368 filed for the LaTeX problem |
Describe the bug
I am trying to use some pieces of doxygen documentation to both document the sources and produce some overall documentation, possibly without duplicating it.
I asked a question on stackoverflow and, with @albert-github help I arrived to the working snippet below.
Expected behavior
Problem is Doxygen seems unable to recognize any Markdown construct in included snippet, only HTML tags are honored.
To have an example simply remove the
<br>
tags and you'll see double-newline is not recognized as paragraph-break.Same thing for lists, inline code markers and other Markdown constructs.
HTML and Doxygen "Special Commands" are correctly recognized.
Is there some way around this? Writing documentation in HTML is a royal PITA :(
Another (very minor) hassle is included code must be in "normal" (non-Doxygen) comment so many editors will not help you out.
Screenshots
To Reproduce
bb.h
CommandHandler.c
Doxyfile
Version
1.9.1
Stack trace
Additional context
The text was updated successfully, but these errors were encountered: