mirror of
https://github.com/ankitects/anki.git
synced 2025-12-13 23:00:58 -05:00
Added name to contributors list as well as addressed issue #3343. Ran ninja check and the build compiled successfully. (#3345)
This commit is contained in:
parent
e0de13e240
commit
a2b4b57390
2 changed files with 1 additions and 6 deletions
|
|
@ -184,6 +184,7 @@ Rastislav Kish <rastislav.kish@protonmail.com>
|
||||||
Expertium <https://github.com/Expertium>
|
Expertium <https://github.com/Expertium>
|
||||||
Christian Donat <https://github.com/cdonat2>
|
Christian Donat <https://github.com/cdonat2>
|
||||||
Asuka Minato <https://asukaminato.eu.org>
|
Asuka Minato <https://asukaminato.eu.org>
|
||||||
|
Dillon Baldwin <https://github.com/DillBal>
|
||||||
********************
|
********************
|
||||||
|
|
||||||
The text of the 3 clause BSD license follows:
|
The text of the 3 clause BSD license follows:
|
||||||
|
|
|
||||||
|
|
@ -142,11 +142,5 @@ const getAnchorParent =
|
||||||
|
|
||||||
const isListItem = (element: Element): element is HTMLLIElement =>
|
const isListItem = (element: Element): element is HTMLLIElement =>
|
||||||
window.getComputedStyle(element).display === "list-item";
|
window.getComputedStyle(element).display === "list-item";
|
||||||
const isParagraph = (element: Element): element is HTMLParamElement => element.tagName === "P";
|
|
||||||
const isBlockElement = (
|
|
||||||
element: Element,
|
|
||||||
): element is HTMLLIElement & HTMLParamElement => isListItem(element) || isParagraph(element);
|
|
||||||
|
|
||||||
export const getListItem = getAnchorParent(isListItem);
|
export const getListItem = getAnchorParent(isListItem);
|
||||||
export const getParagraph = getAnchorParent(isParagraph);
|
|
||||||
export const getBlockElement = getAnchorParent(isBlockElement);
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue