@@ -273,10 +273,11 @@ type RenderStaticHtmlOptions = {
273273 pubDoc : DocJson ;
274274 pubMetadata : PubMetadata ;
275275 notesData : NotesData ;
276+ pagedTarget : boolean ;
276277} ;
277278
278279export const renderStaticHtml = async ( options : RenderStaticHtmlOptions ) => {
279- const { pubDoc, pubMetadata, notesData } = options ;
280+ const { pubDoc, pubMetadata, notesData, pagedTarget } = options ;
280281 const { title, nodeLabels, citationInlineStyle } = pubMetadata ;
281282 const { footnotes, citations, noteManager, renderedStructuredValues } = notesData ;
282283
@@ -287,9 +288,13 @@ export const renderStaticHtml = async (options: RenderStaticHtmlOptions) => {
287288 renderedStructuredValues,
288289 } ) ;
289290
290- const renderableNodes = [ filterNonExportableNodes , addHrefsToNotes , blankIframes ]
291- . filter ( ( x ) : x is ( nodes : any ) => any => ! ! x )
292- . reduce ( ( nodes , fn ) => fn ( nodes ) , pubDoc . content ) ;
291+ const renderableNodes = pagedTarget
292+ ? [ filterNonExportableNodes , addHrefsToNotes , blankIframes ]
293+ . filter ( ( x ) : x is ( nodes : any ) => any => ! ! x )
294+ . reduce ( ( nodes , fn ) => fn ( nodes ) , pubDoc . content )
295+ : [ filterNonExportableNodes , addHrefsToNotes ]
296+ . filter ( ( x ) : x is ( nodes : any ) => any => ! ! x )
297+ . reduce ( ( nodes , fn ) => fn ( nodes ) , pubDoc . content ) ;
293298
294299 const docContent = renderStatic ( {
295300 schema : editorSchema ,
0 commit comments