Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Mike Koepke

    (@mike_koepke)

    Just wanting to confirm…. You checked the option in Settings to not process links in code and pre blocks?

    Thread Starter DevynCJohnson

    (@devyncjohnson)

    Yes, I checked/enabled the “Do not process links in html code blocks” option. URLs in pre and code tags/blocks are still being processed by the “External Links” plugin.

    At this moment, I wonder if the issue relates to the order in which plugins perform their tasks. For instance, I use the “EnlighterJS” plugin to provide syntax coloring to code in pre tags and other blocks. I wonder if there is a conflict between the “External Links” plugin and “EnlighterJS”.

    If that is the case, then here is a suggestion. You may want to add “EnlighterJSWrapper” and “EnlighterJS” classes to the exclude list as well as EnlighterJS’s shortcodes. However, it may be easier to make the “External Links” plugin execute later than usual and then ignore “EnlighterJSWrapper” and “EnlighterJS” classes (which are used in div, ol, ul, and span tags).

    Thread Starter DevynCJohnson

    (@devyncjohnson)

    Here is an example of a plain “code” tag that “External Links” did not ignore https://dcjtech.info/topic/self-extracting-archives-for-linux/ . Look for the line “shar -x -s [email protected] *.pdf > manual.shar”.

    Plugin Author Mike Koepke

    (@mike_koepke)

    Not seeing any problems with the 2 code links you provided in first post.

    The last example actually gets converted into a mailto: link by Chrome. Still not seeng any processing by External Links

    <code>shar -x -s <a href="https://mail.google.com/mail/?view=cm&fs=1&tf=1&[email protected]" target="_blank">[email protected]</a> *.pdf > manual.shar</code>

    Given you are running a highly technical site and also under bbpress, it may be you are at the mercy of what bbpress wants to and how it processes site content. Allowing plugins, like External Links, to automatically manipulate links might not be the right thing for what you need. Sounds like bbpress may be causing some of the problems you are encountering on your site.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Links in Source Code Examples’ is closed to new replies.