diff options
author | Dimitri van Heesch <doxygen@gmail.com> | 2019-01-03 13:54:06 (GMT) |
---|---|---|
committer | Dimitri van Heesch <doxygen@gmail.com> | 2019-01-03 13:54:06 (GMT) |
commit | 5d66d2ea14a173edb3d6b7ffaabd0196392fcb0f (patch) | |
tree | fd6e41e51f43ecacf4df1aaf7aeba984323dd782 /testing | |
parent | d2944ce350bd0fb687227eb4e98b942beab9591d (diff) | |
download | Doxygen-5d66d2ea14a173edb3d6b7ffaabd0196392fcb0f.zip Doxygen-5d66d2ea14a173edb3d6b7ffaabd0196392fcb0f.tar.gz Doxygen-5d66d2ea14a173edb3d6b7ffaabd0196392fcb0f.tar.bz2 |
Issue #6039: Links on image in Markdown (Origin: bugzilla #769223)
Diffstat (limited to 'testing')
-rw-r--r-- | testing/031/indexpage.xml | 34 | ||||
-rw-r--r-- | testing/031_image.dox | 55 |
2 files changed, 82 insertions, 7 deletions
diff --git a/testing/031/indexpage.xml b/testing/031/indexpage.xml index 2c1dfd7..b6a7ed0 100644 --- a/testing/031/indexpage.xml +++ b/testing/031/indexpage.xml @@ -9,7 +9,39 @@ <para>Some text. <image type="html" name="sample.png"/> <image type="latex" name="sample.png" width="5cm">Doxygen logo</image> <image type="docbook" name="sample.png"/> - More text. </para> + More text.</para> + <para>SVG image with caption:<linebreak/> +<image type="html" name="license-MIT-brightgreen.svg">A caption</image> +</para> + <para>PNG image with caption:<linebreak/> +<image type="html" name="license-MIT-brightgreen.png">A caption</image> +</para> + <para>SVG image without caption:<linebreak/> +<image type="html" name="license-MIT-brightgreen.svg"/> +</para> + <para>PNG image without caption:<linebreak/> +<image type="html" name="license-MIT-brightgreen.png"/> +</para> + <para>Inline SVG image with caption:<linebreak/> +This image is inline <image type="html" name="license-MIT-brightgreen.svg" inline="yes">MIT license</image> + within the text.</para> + <para>Inline PNG image with caption:<linebreak/> +This image is inline <image type="html" name="license-MIT-brightgreen.png" inline="yes">MIT license</image> + within the text.</para> + <para>Markdown style linked SVG image:<linebreak/> +<ulink url="http://opensource.org/licenses/MIT"><image type="html" name="license-MIT-brightgreen.svg" inline="yes"/></ulink></para> + <para>Markdown style linked PNG image:<linebreak/> +<ulink url="http://opensource.org/licenses/MIT"><image type="html" name="license-MIT-brightgreen.png" inline="yes"/></ulink></para> + <para>HTML style linked SVG image:<linebreak/> +<ulink url="http://opensource.org/licenses/MIT"><image type="html" name="license-MIT-brightgreen.svg" inline="yes"/></ulink></para> + <para>HTML style linked PNG image:<linebreak/> +<ulink url="http://opensource.org/licenses/MIT"><image type="html" name="license-MIT-brightgreen.png" inline="yes"/></ulink></para> + <para>HTML style unlinked SVG image:<linebreak/> +<image type="html" name="license-MIT-brightgreen.svg" inline="yes"/> +</para> + <para>HTML style unlined PNG image:<linebreak/> +<image type="html" name="license-MIT-brightgreen.png" inline="yes"/> + </para> </detaileddescription> </compounddef> </doxygen> diff --git a/testing/031_image.dox b/testing/031_image.dox index 8ba47b7..61f5bba 100644 --- a/testing/031_image.dox +++ b/testing/031_image.dox @@ -2,9 +2,52 @@ // check: indexpage.xml // config: IMAGE_PATH = $INPUTDIR /** \mainpage - * Some text. - * \image html sample.png - * \image latex sample.png "Doxygen logo" width=5cm - * \image docbook sample.png - * More text. - */ +Some text. +\image html sample.png +\image latex sample.png "Doxygen logo" width=5cm +\image docbook sample.png +More text. + +SVG image with caption:\n +\image html http://img.shields.io/badge/license-MIT-brightgreen.svg "A caption" + +PNG image with caption:\n +\image html http://img.shields.io/badge/license-MIT-brightgreen.png "A caption" + +SVG image without caption:\n +\image html http://img.shields.io/badge/license-MIT-brightgreen.svg + +PNG image without caption:\n +\image html http://img.shields.io/badge/license-MIT-brightgreen.png + +Inline SVG image with caption:\n +This image is inline \image{inline} html http://img.shields.io/badge/license-MIT-brightgreen.svg "MIT license" within the text. + +Inline PNG image with caption:\n +This image is inline +\image{inline} html http://img.shields.io/badge/license-MIT-brightgreen.png "MIT license" +within the text. + +Markdown style linked SVG image:\n +[![MIT license](http://img.shields.io/badge/license-MIT-brightgreen.svg)](http://opensource.org/licenses/MIT) + +Markdown style linked PNG image:\n +[![MIT license](http://img.shields.io/badge/license-MIT-brightgreen.png)](http://opensource.org/licenses/MIT) + +HTML style linked SVG image:\n +<a href="http://opensource.org/licenses/MIT"> +<img src="http://img.shields.io/badge/license-MIT-brightgreen.svg" alt="MIT license"> +</a> + +HTML style linked PNG image:\n +<a href="http://opensource.org/licenses/MIT"> +<img src="http://img.shields.io/badge/license-MIT-brightgreen.png" alt="MIT license"> +</a> + +HTML style unlinked SVG image:\n +<img src="http://img.shields.io/badge/license-MIT-brightgreen.svg" alt="MIT license"/> + +HTML style unlined PNG image:\n +<img src="http://img.shields.io/badge/license-MIT-brightgreen.png" alt="MIT license"/> + +*/ |