Automatic links to page headings

Is it possible to have Jekyll generate direct links to page headings, so that if I click on a header it will jump to that header and provide a link in the address bar that I can copy? I know that I can handcraft these (e.g. site/#my-heading), but it’s quite tedious when I just want to quickly redirect my users to some place in my documentation.