I had a bug when using playdate.graphics.imageWithText and when there is an underscore in the text to display.
Here is an exemple
And if I remove the underscore from "MOVE_TO"
I think the problem is from this function
local function _styleCharacterForNewline(line)
local _, boldCount = string.gsub(line, "*", "*")
if ( boldCount % 2 ~= 0 ) then
return "*"
end
local _, italicCount = string.gsub(line, "_", "_")
if ( italicCount % 2 ~= 0 ) then
return "_"
end
return ""
end