• An autolink entry works this way using phpMarkdown:

    emSentence…<[email protected]>em

    transforms into:

    emSentence…[email protected]em

    However, WordPress apparently kicks in and changes the behavior and the output becomes:

    emSentence…<[email protected]></myname>em

    Unfortunately I have no clue how to fix this. I am sure there is a workaround or something, but as I am totally new to WordPress, I do not know where to start.

    Looking forward to your reply.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter tbrams

    (@tbrams)

    Sorry for the EM tags above. I thought I included them in backticks

    Hm. Are you trying to write a clickable email address? If so, the code would be:

    <a href="mailto:[email protected]">[email protected]</a>

    The above isn’t displaying properly in Opera, and apparently I can’t edit it, so:

    <a href="mailto:[email protected]">[email protected]</a>

    Thread Starter tbrams

    (@tbrams)

    I am familiar with the syntax above, but really lazy. And now that a nice shorthand for writing a clickable email address in Markdown exist, I really want to use it. This is the feature called called “Autolink”.

    If you type <[email protected]> it will be translated to the line you typed out for me above – except it is clever enough to encode the entire mailto address in an attempt to block address harvesting.

    Nice and fast – I really like it. And it works if you call it directly in a php script, but in the edit panel inside wp, this exact feature unfortunately fails.

    but thanks anyway.

    Tbrams, seems to be working fine for me. I’m using MTSpp to set the page I’m testing it on to Markdown and it works fine.

    I can show you the page, but I don’t want to post links to the site here yet, so AIM me chuyskywlk if you’d like.

    It’s probably worth noting, as well, that the version of markdown in MTSpp is the same one used in the default markdown plugin.

    This is WordPress trying to correct what looks like a tag *before* Markdown convert the text to HTML. Try deactivating the a€?WordPress should correct invalidly nested XHTML automaticallya€? box from the WordPress admin interface in Tools > Writing

    Thread Starter tbrams

    (@tbrams)

    Hi MichelFortin,

    I just tried deslecting the option as you suggested, and it works like a dream.

    Thanks for pointing me in that direction ??

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Autolink (Markdown) doesn’t work as expected’ is closed to new replies.