I’ve just found a nice and simple solution.
Instead of using ---
as a separator of the footer I now just use a sequence of em-dashes with a leading #
to format the separator as H1. This makes embedded previews of the form [[note#heading]]
stop at the separator and hide the footer.
Like so:
# ————————————————————
Created:: [[2022-08-15]]
Context:: [[Some MOC]]
Related:: [[Some notes]]