Support » Plugins » Markdown href bug

  • Does anybody else have Markdown working with plain-style href links?
    Whenever I put in link like <http ://> the text is stripped from the output version while the edit version has </http> appended to the text. Multiple links mean multiple </http> appends.
    I’m using WP1.2 and Markdown php v1.0, Sat 21 Aug 2004
    Actually, I’d much rather not have to use angle brackets at all. Why not just convert a bare address to a clickable link just like most email programs do? e.g. becomes

Viewing 3 replies - 1 through 3 (of 3 total)
  • Are you putting a space between the http and the ://, because there shouldn’t be a space. Like this: <>

    eep, no, there are no spaces in my wordpress articles, just in the forum message (though how I managed to do that I don’t know).

    Hum, this problem arrise because WordPress calls a function called “balanceTags” on your post before it is filtered by Markdown. This function assume that the URL is an unclosed HTML tag and close it with a </html>.
    The idea is not bad really, except that it should be done *after* Markdown has filtered the text.
    You can solve this problem by unchecking the “WordPress should correct invalidly nested XHTML automatically” box in Option > Writing from the admin page. You will lose the automatic check for balenced tags, but at least URLs will work correctly.
    — Michel Fortin

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Markdown href bug’ is closed to new replies.