Skip to content

Markdown blockquotes with lists do not render as expected #11309

@pawelrapacz

Description

@pawelrapacz

I've set a markdown file as main page in doxygen and noticed that lists in blockquotes look wierd.
When creating a list in a blockquote the output seems to be incorrect. (without any text above the list in blockquote)

Example 1

Markdown code:

> - first element
> - secod element
> - third element
> - fourth element
> - fifth element

Expected output:

  • first element
  • secod element
  • third element
  • fourth element
  • fifth element

Doxygen output:
image

Generated html:

<blockquote class="doxtable">
    <p>‍- first element</p>
    <ul>
        <li>secod element</li>
        <li>third element</li>
        <li>fourth element</li>
        <li>fifth element </li>
    </ul>
</blockquote>

Example 2

Markdown code:

> 1. first element
> 2. secod element
>    1. nested element
>       - nested element
>    2. nested element
> 3. third element
> 4. fourth element
> 5. fifth element

Expected output:

  1. first element
  2. secod element
    1. nested element
      • nested element
    2. nested element
  3. third element
  4. fourth element
  5. fifth element

Doxygen output:
image

Generated html:

<blockquote class="doxtable">
    <p>‍1. first element</p>
    <ol type="1">
        <li>secod element
            <ol type="a">
                <li>nested element
                    <ul>
                        <li>nested element</li>
                    </ul>
                </li>
                <li>nested element</li>
            </ol>
        </li>
        <li>third element</li>
        <li>fourth element</li>
        <li>fifth element </li>
    </ol>
</blockquote>

Example 3 - here it looks ok

Markdown code:

> Text above the list
> - first element
> - secod element
> - third element
> - fourth element
> - fifth element

Expected output:

Text above the list

  • first element
  • secod element
  • third element
  • fourth element
  • fifth element

Doxygen output:
image

Generated html:

<blockquote class="doxtable">
    <p>‍Text above the list</p>
    <ul>
        <li>first element</li>
        <li>secod element</li>
        <li>third element</li>
        <li>fourth element</li>
        <li>fifth element </li>
    </ul>
</blockquote>

Version
1.13.0 (on Windows 10)

Metadata

Metadata

Assignees

No one assigned

    Labels

    MarkdownMarkdown translation input related issuebug

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions