diff --git a/pkgs/scribble-pkgs/scribble-lib/scribble/html-render.rkt b/pkgs/scribble-pkgs/scribble-lib/scribble/html-render.rkt index cf167e98..f64e987f 100644 --- a/pkgs/scribble-pkgs/scribble-lib/scribble/html-render.rkt +++ b/pkgs/scribble-pkgs/scribble-lib/scribble/html-render.rkt @@ -977,14 +977,14 @@ ri)))))) (define/public (extract-render-pict-as d) - (or (ormap (lambda (v) + (ormap (lambda (v) (and (render-pict-as? v) (render-pict-as-type v))) - (style-properties (part-style d))) - 'png-images)) + (style-properties (part-style d)))) (define/override (render-part-content d ri) - (parameterize ([current-render-pict-as (extract-render-pict-as d)]) + (parameterize ([current-render-pict-as (or (extract-render-pict-as d) + (current-render-pict-as))]) (let ([number (collected-info-number (part-collected-info d ri))]) `(,@(let ([pres (extract-pretitle d)]) (append-map (lambda (pre)