Forums

SyntaxHighlighter Evolved
URLs auto-linked in comments before being highlighted (3 posts)

  1. Aaron D. Campbell
    Member
    Posted 8 months ago #

    If you take a look at comments like these:

    You can see that the URLs are getting linked BEFORE the sourcecode shortcode is being processed. This ends up messing up the code that's being posted. The workaround is to put a space after http so the URL isn't auto-linked, but obviously then the code isn't accurate.

    http://wordpress.org/extend/plugins/syntaxhighlighter/

  2. Alex Mills (Viper007Bond)
    Moderator
    Posted 8 months ago #

    Yeah, known issue. :(

    Technically they're being hyperlinked AFTER the shortcode is processed, not before, but it doesn't really matter as the result is the same. The Javascript shows the HTML source.

    make_clickable() isn't smart enough to not touch stuff inside of pre tags.

    Mike Adams wrote a patch for me that uses some placeholders to get around this issue, I just haven't had time to massage the patch and commit it.

  3. Aaron D. Campbell
    Member
    Posted 8 months ago #

    Well, I'd be happy to help test or tweak the patch. Let me know.

Reply

You must log in to post.

About this Plugin

About this Topic