Skip to content

List item inside code annotation not rendering correctly #5633

@bnigh

Description

@bnigh

Context

No response

Bug description

When including multiple annotations for a code block and an annotation contains a nested list, then the annotations do not render correctly.

The one annotation is rendering with the second unordered list item blank, and another annotation's content is replaced by the text of that missing list item.

This seems to be related to #5496, although is impacting code annotations for public version

Related links

Reproduction

example.zip

Steps to reproduce

MkDocs version: 1.4.3
Material version: 9.1.16

    ```bash
    echo "foo" # (1)!
    echo "bar" # (2)!
    ```
    
    1. The beginning of the first annotation, which includes a:
	    
	    - list
	    - of
	    - items
	    
	    Plus another sentence.
	    
    2. Here's the second annotation.

And they render like

Screen Shot 2023-06-22 at 7 41 44 PM

Screen Shot 2023-06-22 at 7 47 11 PM

Browser

No response

Before submitting

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssue reports a bugresolvedIssue is resolved, yet unreleased if open

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy