Skip to content

Commit caf907b

Browse files
authored
Merge pull request #31 from DuLinRain/patch-1
feat: keep styles when output contain styles content
2 parents 9bd4014 + 3c13975 commit caf907b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/Cell.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ export const Cell: React.FC<CellProps> = ({ cell, seq }) => {
196196
<div
197197
className="output_html rendered_html output_subarea"
198198
dangerouslySetInnerHTML={{
199-
__html: htmlFilter(html),
199+
__html: htmlFilter(`<div>${html}</div>`),
200200
}}
201201
></div>
202202
);

0 commit comments

Comments
 (0)