Skip to content

Commit 7fa1640

Browse files
authored
fix: resolve relative image paths in HTML files (#890)
2 parents 2c24c44 + d43d6fd commit 7fa1640

3 files changed

Lines changed: 922 additions & 619 deletions

File tree

src/components/Folder/FolderComponent.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ export default function FolderComponent({ selectedFile }: Props) {
6464
"h4",
6565
"h5",
6666
"h6",
67+
"style",
6768
],
6869
ALLOWED_ATTR: [
6970
"href",
@@ -78,6 +79,7 @@ export default function FolderComponent({ selectedFile }: Props) {
7879
"rowspan",
7980
"class",
8081
"id",
82+
"style",
8183
],
8284
FORBID_ATTR: [
8385
"onerror",

0 commit comments

Comments
 (0)