Drupal.org

HTML filter runs after code filter, so URLs get linkified even if in code on d.o

Project:Drupal.org webmasters
Component:Other
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

I've noticed this on drupal.org before, but in this issue you can see that URLs get linkified even within a code block. I imagine this means that we need to move the code to later in the input format.

Comments

#1

#2

I don't think we want linkification filter before the code filter. If a the code filter finds HTML inside a code block, it gets escaped like so:

+++ b/pift.results.inc
@@ -0,0 +1,304 @@
+ * Provide the Automated Testing tab and UI functions.
+ *
+ * @author Jeremy Thorson ("jthorson", <a href="http://drupal.org/user/148199">http://drupal.org/user/148199</a>)

I think the only way to do it would be to have a custom URL filter that is aware of the code filter's function and and ignores any URLs found inside <code> blocks.

#3

#4

nobody click here