"Add linked" option to "make it public for publishing" (mark linked pages as public)

I would like to have all linked pages to receive the public:: true attribute when I mark the present one public. This should be an option, of course, not the default behavior.

A bit like Obsidian does for its Publishing service.

CleanShot 2022-06-18 at 13.23.53@2x