Table of Contents

What is the recommended way of implementing the table of contents into a blog post in Guttenberg or do you have to do it in the Bricks template?

Also, what is the shortcode for the table of contents?

Regards,

Sheldon