Skip to content

Commit

Permalink
fix formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
PacoVK committed Aug 27, 2024
1 parent 29ae9b2 commit 0199c65
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/transformer/MarkTransformer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ import { ITransformerOutput } from "../types";

const rewriteMarks = (content: HTMLElement): ITransformerOutput => {
content.querySelectorAll("mark").forEach((mark) => {
mark.replaceWith(`<span style="background:#ff0;color:#000">${mark.childNodes}</style>`);
mark.replaceWith(
`<span style="background:#ff0;color:#000">${mark.childNodes}</style>`,
);
});
return {
content,
Expand Down

0 comments on commit 0199c65

Please sign in to comment.