GNOME Bugzilla – Bug 671709
Markdown backticks produce <code></code> instead of <tt></tt>
Last modified: 2012-05-19 12:26:19 UTC
Currently, backticks yield <code> tags, which yield block-level formatting in the final HTML output: Markdown: `...` Source HTML: <code>...</code> Final HTML: <div class="fragment"><pre class="fragment">...</pre></div> The problem is, according to the documentation at http://www.stack.nl/~dimitri/doxygen/markdown.html#md_codespan backticks are supposed to yield inline formatting, not block formatting. That is, text between the backticks should not appear on a new line. The solution is for the Markdown processor to yield <tt> instead of <code>: Markdown: `...` Source HTML: <tt>...</tt> Final HTML: <code>...</code>
<code>..</code> should not lead to a <div><pre> in the final output. What you see is probably due to indenting >=4 spaces. Can you please attach a self-contained example (source+config file in a tar or zip) that allows me to reproduce the problem?
Created attachment 209377 [details] Test source code
Created attachment 209378 [details] Test doxygen.config
Created attachment 209379 [details] Screenshot of results demonstrating bug
Hi Dimitri, Find attached a test.cs and doxygen.config that demonstrate the bug, plus a screenshot of the results they produce on my machine with doxygen 1.8.0. Best, Ron
Hi Marco, Thanks for the example. I now realize <code> behaves differently for C# than it does for C++ (to make it compatible with other C# tools). As a result backticks indeed give the wrong results. I'll use <tt> instead as you suggested.
*** Bug 671771 has been marked as a duplicate of this bug. ***
This bug was previously marked ASSIGNED, which means it should be fixed in doxygen version 1.8.1. Please verify if this is indeed the case. Reopen the bug if you think it is not fixed and please include any additional information that you think can be relevant.