Skip to content

Commit

Permalink
enforce value
Browse files Browse the repository at this point in the history
  • Loading branch information
PacoVK committed Feb 22, 2024
1 parent 618ad0c commit 922c559
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/transformer/LinkTransformer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const rewriteDescriptionLists = (content: HTMLElement) => {
content.querySelectorAll("dl").forEach((dl) => {
dl.querySelectorAll("div").forEach((div) => {
const child = div.firstChild;
div.replaceWith(child);
div.replaceWith(child!);
});
const rows = [];
let current = { dt: [], dd: [] };
Expand Down Expand Up @@ -63,7 +63,7 @@ const rewriteDescriptionLists = (content: HTMLElement) => {
}
});
const node = dl.firstChild;
dl.replaceWith("<table></table>").appendChild(node);
dl.replaceWith("<table></table>").appendChild(node!);
});
};

Expand Down

0 comments on commit 922c559

Please sign in to comment.