GNOME Bugzilla – Bug 726294
Markdown Extra - fenced code block: '>' before tab width parsed as block quote
Last modified: 2014-04-21 10:09:27 UTC
Given this example markdown: ~~~{.cpp} template < typename Mixins > class Thing : public Mixins... {}; struct FooFunctionality; struct BarFunctionality; struct BazFunctionality; Thing< FooFunctionality, BarFunctionality, BazFunctionality > thing; // I hope no one ever writes an if statement like this. if ( a > b ) { bar(); } stream >> a >> b; stream >> a >> b; stream >> a >> b; stream >> a >> b; stream >> a >> b; ~~~ HTML generated by Doxygen has text block withe the following content: template < typename Mixins <blockquote> class Thing : public Mixins... {}; </blockquote> struct FooFunctionality; struct BarFunctionality; struct BazFunctionality; Thing< FooFunctionality, BarFunctionality, BazFunctionality <blockquote> thing; </blockquote> // I hope no one ever writes an if statement like this. if ( a <blockquote> </blockquote> b ) { bar(); } stream >> a <blockquote> <blockquote> b; </blockquote> </blockquote> stream >> a <blockquote> <blockquote> b; </blockquote> </blockquote> stream >> a <blockquote> <blockquote> b; </blockquote> </blockquote> stream >> a <blockquote> <blockquote> b; </blockquote> </blockquote> stream >> a >> b; You can see that any line that starts with a '>' before the tab width is reached is treated as a block quote (with nesting allowed). I guess there are 2 possible errors here: a) Looking for block quotes within a fenced code block should not occur (my preference) b) Block quote generation within a code fence is incorrect (I don't really know why anyone would want to do this) I have tested this on both 1.8.5 and 1.8.6
Confirmed. Should be fixed in the next GIT update.
This bug was previously marked ASSIGNED, which means it should be fixed in doxygen version 1.8.7. 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 (preferrably in the form of a self-contained example).