Define Headings endings

My latest conclusion was this:

I don’t know if anyone ever wrote an extension for a CM parser to implement this. I doubt it would ever be included as part of the core syntax.