Fix isBlockElement()

This commit is contained in:
Henrik Giesel 2021-04-21 14:40:16 +02:00
parent 1f97f5208e
commit 74fb75c5c4

View file

@ -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);