close #31481 currently `$$A + B$$ test` will ignore text after $$ block test text  before fix  after fix  github display  (cherry picked from commit f0033051d5ce07f5a18d2aacef6bfdca5fc69014)