I see that the markdown headings have the headings as ID with spaces replaced with dashes in the generated HTML files.
I want to tinker with the code that is responsible for this so I can change the rules and replace some characters with some other characters. But I cannot seem to find where this code is.
Please help in finding the source files, for example, in this theme: https://github.com/pages-themes/minimal