The 'text' language identifer appears as applescript rather than text

Unfortunately it happens when text is omitted as well:

here's some text in the code fence with no language identifier