How could I display no headings in the PDF?

How could I display no headings in the PDF? (Removing them completely and not filling them with white.)

I use the heading to classify the content and fold the content under the heading in the script.

#set page("a4", margin: auto)

= red pic
// figure
#figure(
    rect(height:6cm, width: 11cm, fill: red),
    caption: [A curious figure.],
) <fig1>

#figure(
    rect(height:10cm, width: 5cm, fill: red),
    caption: [A curious figure.],
) <fig2>

= blue pic
#figure(
    rect(height:2cm, width: 8cm, fill: blue),
    caption: [A curious figure.],
) <fig3>

show heading: none
1 Like