Skip to content

Commit d9a27c5

Browse files
authored
Skip aria-hidden (#73)
1 parent 028ad3b commit d9a27c5

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

src/converters.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,11 @@ export function htmlToMarkdown(
104104
replacement: () => "",
105105
});
106106

107+
turnDownService.addRule("remove-aria-hidden", {
108+
filter: (node: any) => node.getAttribute("aria-hidden") === "true",
109+
replacement: () => "",
110+
});
111+
107112
turnDownService.addRule("truncate-svg", {
108113
filter: "svg" as any,
109114
replacement: () => "",

0 commit comments

Comments
 (0)