Skip to content

Commit cf4b733

Browse files
committed
make prettier happy
1 parent 3879b30 commit cf4b733

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

src/rich-text/schema.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ const nodes: {
436436
title: { default: null },
437437
additionalClasses: { default: "" },
438438
},
439-
parseDOM: [
439+
parseDOM: [
440440
{
441441
tag: "a.s-tag",
442442
getAttrs(dom: HTMLElement) {
@@ -447,7 +447,7 @@ const nodes: {
447447
additionalClasses: Array.from(dom.classList).join(" "),
448448
tagType: dom.getAttribute("tagtype"),
449449
tagName: dom.textContent,
450-
}
450+
};
451451
},
452452
},
453453
],
@@ -458,9 +458,9 @@ const nodes: {
458458
tagType: node.attrs.tagType as string,
459459
href: node.attrs.href as string,
460460
title: node.attrs.title as string,
461-
class: `s-tag ${node.attrs.additionalClasses as string}`
461+
class: `s-tag ${node.attrs.additionalClasses as string}`,
462462
},
463-
node.attrs.tagName
463+
node.attrs.tagName,
464464
];
465465
},
466466
},

src/shared/markdown-it/tag-link.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,13 @@ function parse_tag_link(
6363
token.attrSet("href", rendered.link);
6464
token.attrSet("title", rendered.linkTitle);
6565
token.attrSet("additionalClasses", additionalClasses.join(" "));
66-
}
67-
else {
66+
} else {
6867
// We don't want to crash the parsing process here since we can still display a passable version of the tag link.
6968
// However, we should at least log a console error.
7069
// eslint-disable-next-line no-console
71-
console.error(`Unable to fully render taglink for [${tagName}] due to invalid response from options.renderer.`);
70+
console.error(
71+
`Unable to fully render taglink for [${tagName}] due to invalid response from options.renderer.`
72+
);
7273
}
7374
}
7475

src/shared/markdown-parser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ const customMarkdownParserTokens: MarkdownParser["tokens"] = {
119119
tagType: tok.attrGet("tagType"),
120120
href: tok.attrGet("href"),
121121
additionalClasses: tok.attrGet("additionalClasses"),
122-
title: tok.attrGet("title")
122+
title: tok.attrGet("title"),
123123
}),
124124
},
125125

0 commit comments

Comments
 (0)