We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f3d5e22 commit 225df64Copy full SHA for 225df64
1 file changed
services/frontend/libs/shared/utils/src/lib/marked.utils.ts
@@ -36,9 +36,9 @@ export const initializeMarkdown = () => {
36
37
const originalImage = anyRenderer['image']?.bind(renderer) as ((...args: any[]) => string) | undefined;
38
anyRenderer['image'] = (...args: any[]): string => {
39
- let href = '' as string | undefined;
40
- let title = null as string | null;
41
- let text = '' as string | undefined;
+ let href: string | undefined = '';
+ let title: string | null = null;
+ let text: string | undefined = '';
42
// token form
43
if (args.length === 1 && typeof args[0] === 'object') {
44
const token = args[0] as { href?: string; title?: string | null; text?: string };
0 commit comments