I broke the previous version of escapeMarkdown() into separate functions. One of the two functions is escapeEscapeSequence() that will avoid performing an "escape sequence" within the image transcription. The other function is escapeMarkdown() which will now only escape special characters specifically in the Markdown syntax. I also renamed some variables that I had previously created and changed what the variable "result" was in the function processMention()
I broke the previous version of
escapeMarkdown()
into separate functions. One of the two functions isescapeEscapeSequence()
that will avoid performing an "escape sequence" within the image transcription. The other function isescapeMarkdown()
which will now only escape special characters specifically in the Markdown syntax. I also renamed some variables that I had previously created and changed what the variable "result" was in the functionprocessMention()