You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
The text was updated successfully, but these errors were encountered:
feasgal
changed the title
Unordered list in annotation is rendering into a different annotation.
List item inside annotation is rendering into a different annotation.
May 9, 2023
Thanks for reporting! Fixed in 43c30522a. The problem was that the selector to find the respective lists was not specific enough, so the list inside the code annotation was mistaken for being the annotation content.
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:
<ol hidden>
that appears after the paragraph in the page source, the second<li>
has not been stripped like the first one has..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:
But the two annotations are rendering like this:

And this:

I'm baffled.
Browser
No response
Before submitting
The text was updated successfully, but these errors were encountered: