@@ -79,6 +79,20 @@ describe("exportDocumentToDcHtml", () => {
7979 expect ( html ) . toContain ( "설정 항목" ) ;
8080 expect ( html ) . toContain ( "자동 밝기 또는 40% 이하" ) ;
8181 expect ( html ) . toContain ( "백그라운드 소모 감소" ) ;
82+ expect ( html ) . toMatch (
83+ new RegExp (
84+ `<th style="padding:8px 10px;border:1px solid #[0-9a-f]{6};background-color:#[0-9a-f]{6};color:#[0-9a-f]{6};font-family:${ escapeRegExp (
85+ expectedDefaultDcProseFontFamily ,
86+ ) } ;font-size:17px;font-weight:700;line-height:1\\.62;text-align:left;vertical-align:top;word-break:keep-all;overflow-wrap:break-word">설정 항목</th>`,
87+ ) ,
88+ ) ;
89+ expect ( html ) . toMatch (
90+ new RegExp (
91+ `<td style="padding:9px 10px;border:1px solid #[0-9a-f]{6};background-color:#[0-9a-f]{6};font-family:${ escapeRegExp (
92+ expectedDefaultDcProseFontFamily ,
93+ ) } ;font-size:17px;line-height:1\\.62;text-align:left;vertical-align:top;word-break:keep-all;overflow-wrap:break-word">자동 밝기 또는 40% 이하</td>`,
94+ ) ,
95+ ) ;
8296 } ) ;
8397
8498 it ( "keeps prose font styles after markdown-authored data tables" , async ( ) => {
@@ -94,7 +108,7 @@ describe("exportDocumentToDcHtml", () => {
94108 ) ;
95109
96110 const html = await exportDocumentToDcHtml ( document , exportOptions ) ;
97- const afterTableHtml = html . slice ( Math . max ( 0 , html . indexOf ( "map" ) - 240 ) ) ;
111+ const afterTableHtml = html . slice ( Math . max ( 0 , html . indexOf ( "map" ) - 300 ) ) ;
98112
99113 expect ( afterTableHtml ) . toContain (
100114 `font-family:${ expectedDefaultDcProseFontFamily } ;font-size:17px` ,
@@ -290,7 +304,7 @@ describe("exportDocumentToDcHtml", () => {
290304 new RegExp (
291305 `<code style="background-color:#[0-9a-f]{6};color:#[0-9a-f]{6};font-family:${ escapeRegExp (
292306 safeDcInlineCodeFontFamily ( ) ,
293- ) } ;font-size:0 \\.92em;padding:1px 4px;border-radius:4px">LLM 가이드</code>`,
307+ ) } ;font-size:\\.92em;font-weight:700 ;padding:1px 4px;border-radius:4px">LLM 가이드</code>`,
294308 ) ,
295309 ) ;
296310 expect ( html ) . toContain ( "TIP" ) ;
0 commit comments