Skip to content

List item inside annotation is rendering into a different annotation. #5496

@feasgal

Description

@feasgal

Context

No response

Bug description

I have a sentence with two annotations in it. The first annotation includes an unordered list of three items. The second annotation is a single sentence.

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

UPDATE:

  • Upon further testing, this happens with ordered and unordered lists, and it happens whether I use markdown syntax for the lists, or insert raw HTML in the annotation.
  • In the <ol hidden> that appears after the paragraph in the page source, the second <li> has not been stripped like the first one has.
  • All of which leads me to believe it's something about the way the popup in the block with the .annotate class is rendered from the ordered list of annotations below it that gets hidden in the final page display.

Related links

Reproduction

untitled folder.zip

Steps to reproduce

MkDocs version: 1.4.2
Material version: 9.1.1+insiders.4.32.2

Here's the markdown code:

A sentence with an annotation (1) and a second annotation (2). 
{ .annotate }

1.	The beginning of the first annotation, which includes a:
	
	-	list
	-	of
	-	items
	
	Plus another sentence.
	
2.	Here's the second annotation.

But the two annotations are rendering like this:
image

And this:
image

I'm baffled.

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