diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml
index 7285014..1e73c84 100644
--- a/.gitea/workflows/ci.yml
+++ b/.gitea/workflows/ci.yml
@@ -9,8 +9,6 @@ on:
jobs:
test:
runs-on: ubuntu-latest
- container:
- image: mcr.microsoft.com/playwright:v1.56.1-jammy
steps:
- name: Checkout repository
@@ -19,6 +17,9 @@ jobs:
- name: Install dependencies
run: |
npm ci
+ # Playwright 브라우저 및 시스템 의존성을 한 번 설치해 두면
+ # self-hosted runner 캐시를 통해 이후 실행 속도가 빨라진다.
+ npx playwright install --with-deps
- name: Generate Prisma Client
env:
diff --git a/src/app/api/export/route.ts b/src/app/api/export/route.ts
index cefdcca..7c4b7df 100644
--- a/src/app/api/export/route.ts
+++ b/src/app/api/export/route.ts
@@ -250,9 +250,19 @@ export const buildStaticHtml = (blocks: Block[], projectConfig?: ProjectConfig):
.filter(Boolean)
.join(" ");
+ let innerHtml = escapeHtml(label);
+
+ if (typeof (props as any).imageSrc === "string" && (props as any).imageSrc.trim() !== "") {
+ const imgSrc = escapeAttr((props as any).imageSrc.trim());
+ const altRaw = (props as any).imageAlt as string | undefined;
+ const altValue = altRaw && altRaw.trim() !== "" ? altRaw.trim() : label;
+ const imgAlt = escapeAttr(altValue);
+ innerHtml = `${innerHtml}`;
+ }
+
return `