From b691b633fc8a91c500c0582613ad743ef93e9064 Mon Sep 17 00:00:00 2001 From: Remi Guan Date: Thu, 2 Jan 2025 23:45:47 +0800 Subject: [PATCH] fix: DOM element shouldn't include node attribute --- app/components/playground/ResultContainer.tsx | 35 ++++++++++--------- 1 file changed, 18 insertions(+), 17 deletions(-) diff --git a/app/components/playground/ResultContainer.tsx b/app/components/playground/ResultContainer.tsx index 15889af..3035a3e 100644 --- a/app/components/playground/ResultContainer.tsx +++ b/app/components/playground/ResultContainer.tsx @@ -1,3 +1,4 @@ +/* eslint-disable @typescript-eslint/no-unused-vars */ 'use client'; import { QueryResult } from '@/app/actions/apiInterface'; @@ -15,23 +16,23 @@ interface ResultContentProps { } const markdownComponents: Components = { - p: ({ ...props }) =>

, - h1: ({ ...props }) =>

, - h2: ({ ...props }) =>

, - h3: ({ ...props }) =>

, - h4: ({ ...props }) =>

, - h5: ({ ...props }) =>

, - h6: ({ ...props }) =>
, - ul: ({ ...props }) =>