add checks to avoid conflicts

I had a client today that was using another WordPress plugin which was also defining a `Markdown` function so I had to do this little mod.
I added some checks for the generic classes as well to avoid conflicts in case a plugin/theme dev embeds these in their own theme/plugin.
Just in case... doesn't hurt to check. :smile: