mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2026-07-23 06:13:38 -04:00
Fixed lists after code blocks disappearing without annotations
This commit is contained in:
@@ -21,6 +21,7 @@
|
||||
*/
|
||||
|
||||
import {
|
||||
EMPTY,
|
||||
Observable,
|
||||
Subject,
|
||||
defer,
|
||||
@@ -118,6 +119,10 @@ export function mountAnnotationList(
|
||||
marker.replaceWith(annotations.get(+id)!)
|
||||
}
|
||||
|
||||
/* Keep list if there are no annotations to render */
|
||||
if (annotations.size === 0)
|
||||
return EMPTY
|
||||
|
||||
/* Create and return component */
|
||||
return defer(() => {
|
||||
const done$ = new Subject<void>()
|
||||
|
||||
Reference in New Issue
Block a user