Why don't my markdown titles work sometimes?

I write a lot of markdown. I use it on GitHub when creating issues/PRs, I use it in Obsidian when I take notes, I use it in Hugo when writing blog posts ( like this one ), I use it in Jupyter Notebooks when working with data and I use it in Sphinx with MyST when writing documentation.