Horizontal rule markdown / text export

I’ve recently had to export some notes as markdown / text from Bear, and I’ve noticed that the Bear horizontal rule created using the Bear keyboard, is exported as:

“- - -“

Why are the spaces there?

Shouldn’t it be just:

“—“ ?

I’m asking because another markdown app I’m using is expecting the horizontal lines to be without spaces, and is not parsing them as such on import in this case.

I don’t know anything about markdown standards but this seemed odd to me.

Also interestingly, if I actually create the horizontal line in Bear by typing in “—“ (which on iOS I have to do backwards, because of the smart punctuation), then on export that is how it is exported too, and works correctly on import with the other app.

Both syntaxes are valid for CommonMark, we just picked the dotted as the “default” for the separator.