@@ -408,7 +408,14 @@ export function generateContent(
408408 case "paragraph" : {
409409 const styleName = resolveParagraphStyleName ( element , "Standard" , paraStyleMap ) ;
410410 const p = el ( "text:p" ) . attr ( "text:style-name" , styleName ) ;
411- imageCounter = appendRuns ( p , element . runs ?? [ ] , textStyleMap , imageMap , imageCounter , graphicStyleMap ) ;
411+ imageCounter = appendRuns (
412+ p ,
413+ element . runs ?? [ ] ,
414+ textStyleMap ,
415+ imageMap ,
416+ imageCounter ,
417+ graphicStyleMap ,
418+ ) ;
412419 textContainer . appendChild ( p ) ;
413420 break ;
414421 }
@@ -421,7 +428,14 @@ export function generateContent(
421428 const h = el ( "text:h" )
422429 . attr ( "text:style-name" , styleName )
423430 . attr ( "text:outline-level" , String ( level ) ) ;
424- imageCounter = appendRuns ( h , element . runs ?? [ ] , textStyleMap , imageMap , imageCounter , graphicStyleMap ) ;
431+ imageCounter = appendRuns (
432+ h ,
433+ element . runs ?? [ ] ,
434+ textStyleMap ,
435+ imageMap ,
436+ imageCounter ,
437+ graphicStyleMap ,
438+ ) ;
425439 textContainer . appendChild ( h ) ;
426440 break ;
427441 }
@@ -450,7 +464,14 @@ export function generateContent(
450464 if ( element . list ) {
451465 const listName = `L${ listCounter } ` ;
452466 textContainer . appendChild (
453- buildListElement ( listName , element . list , textStyleMap , imageMap , imageCounter , graphicStyleMap ) ,
467+ buildListElement (
468+ listName ,
469+ element . list ,
470+ textStyleMap ,
471+ imageMap ,
472+ imageCounter ,
473+ graphicStyleMap ,
474+ ) ,
454475 ) ;
455476 imageCounter += countImagesInList ( element . list ) ;
456477 listCounter ++ ;
@@ -782,7 +803,14 @@ function buildTableElement(
782803
783804 // Cell content paragraph
784805 const p = el ( "text:p" ) . attr ( "text:style-name" , "Standard" ) ;
785- imageCounter = appendRuns ( p , cell . runs , textStyleMap , imageMap , imageCounter , graphicStyleMap ) ;
806+ imageCounter = appendRuns (
807+ p ,
808+ cell . runs ,
809+ textStyleMap ,
810+ imageMap ,
811+ imageCounter ,
812+ graphicStyleMap ,
813+ ) ;
786814 cellEl . appendChild ( p ) ;
787815
788816 rowEl . appendChild ( cellEl ) ;
@@ -1306,7 +1334,14 @@ function buildListElement(
13061334
13071335 // Paragraph with the item text
13081336 const p = el ( "text:p" ) . attr ( "text:style-name" , paraStyleName ) ;
1309- imageCounter = appendRuns ( p , item . runs , textStyleMap , imageMap , imageCounter , graphicStyleMap ) ;
1337+ imageCounter = appendRuns (
1338+ p ,
1339+ item . runs ,
1340+ textStyleMap ,
1341+ imageMap ,
1342+ imageCounter ,
1343+ graphicStyleMap ,
1344+ ) ;
13101345 itemEl . appendChild ( p ) ;
13111346
13121347 // Nested sub-list (goes inside the same list-item)
0 commit comments