“\label” in the math block and "\ref" in the content at the same time cause error

As you noted, this is because we don’t support (yet) equation numbering. At some point, we’ll look into it.