mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
Satisfy formatter
This commit is contained in:
parent
861c723ec0
commit
35beebcfa6
1 changed files with 1 additions and 4 deletions
|
@ -30,10 +30,7 @@ function allowNone(element: Element): void {
|
||||||
}
|
}
|
||||||
|
|
||||||
const allow = (attrs: string[]): FilterMethod => (element: Element): void =>
|
const allow = (attrs: string[]): FilterMethod => (element: Element): void =>
|
||||||
filterAttributes(
|
filterAttributes((attributeName: string) => attrs.includes(attributeName), element);
|
||||||
(attributeName: string) => attrs.includes(attributeName),
|
|
||||||
element
|
|
||||||
);
|
|
||||||
|
|
||||||
function unwrapElement(element: Element): void {
|
function unwrapElement(element: Element): void {
|
||||||
element.replaceWith(...element.childNodes);
|
element.replaceWith(...element.childNodes);
|
||||||
|
|
Loading…
Reference in a new issue