diff --git a/src/components/comment/artalk.ts b/src/components/comment/artalk.ts index d5a4973..3b15c10 100644 --- a/src/components/comment/artalk.ts +++ b/src/components/comment/artalk.ts @@ -134,6 +134,9 @@ const parseContent = async (content: string): Promise => { 'ol', 'li', ], + allowAttributes: { + img: ['src', 'width', 'height', 'rel', 'target'], + }, allowComments: false, }), ]);