mirror of
https://github.com/ankitects/anki.git
synced 2025-12-20 10:22:57 -05:00
Fix isBlockElement()
This commit is contained in:
parent
1f97f5208e
commit
74fb75c5c4
1 changed files with 1 additions and 1 deletions
|
|
@ -105,7 +105,7 @@ const isParagraph = (element: Element): element is HTMLParamElement =>
|
||||||
const isBlockElement = (
|
const isBlockElement = (
|
||||||
element: Element
|
element: Element
|
||||||
): element is HTMLLIElement & HTMLParamElement =>
|
): element is HTMLLIElement & HTMLParamElement =>
|
||||||
isListItem(element) || isBlockElement(element);
|
isListItem(element) || isParagraph(element);
|
||||||
|
|
||||||
export const getListItem = getAnchorParent(isListItem);
|
export const getListItem = getAnchorParent(isListItem);
|
||||||
export const getParagraph = getAnchorParent(isParagraph);
|
export const getParagraph = getAnchorParent(isParagraph);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue