mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04: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 = (
|
||||
element: Element
|
||||
): element is HTMLLIElement & HTMLParamElement =>
|
||||
isListItem(element) || isBlockElement(element);
|
||||
isListItem(element) || isParagraph(element);
|
||||
|
||||
export const getListItem = getAnchorParent(isListItem);
|
||||
export const getParagraph = getAnchorParent(isParagraph);
|
||||
|
|
Loading…
Reference in a new issue