mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2026-08-04 19:45:08 -04:00
Formatting
This commit is contained in:
@@ -90,7 +90,7 @@ function findAnnotationMarkers(container: HTMLElement): Text[] {
|
||||
text = marker.splitText(id.length)
|
||||
markers.push(marker)
|
||||
|
||||
/* Replace entire text with marker */
|
||||
/* Replace entire text with marker */
|
||||
} else {
|
||||
text.textContent = id
|
||||
markers.push(text)
|
||||
@@ -169,16 +169,16 @@ export function mountAnnotationList(
|
||||
.pipe(
|
||||
takeUntil(done$.pipe(takeLast(1)))
|
||||
)
|
||||
.subscribe(active => {
|
||||
el.hidden = !active
|
||||
.subscribe(active => {
|
||||
el.hidden = !active
|
||||
|
||||
/* Show annotations in code block or list (print) */
|
||||
for (const [inner, child] of pairs)
|
||||
if (!active)
|
||||
swap(child, inner)
|
||||
else
|
||||
swap(inner, child)
|
||||
})
|
||||
/* Show annotations in code block or list (print) */
|
||||
for (const [inner, child] of pairs)
|
||||
if (!active)
|
||||
swap(child, inner)
|
||||
else
|
||||
swap(inner, child)
|
||||
})
|
||||
|
||||
/* Create and return component */
|
||||
return merge(...[...annotations]
|
||||
|
||||
Reference in New Issue
Block a user