mirror of
https://github.com/diocloid/LinkTitles.git
synced 2025-07-13 17:59:29 +02:00
Do not link inside <gallery>..</gallery> tags.
- Fix: Do not link inside <gallery>...</gallery> tags. Closes #21.
This commit is contained in:
@ -471,6 +471,7 @@ private static function BuildDelimiters() {
|
|||||||
'<nowiki>.*?<.nowiki>|<code>.*?<\/code>|' . // nowiki/code
|
'<nowiki>.*?<.nowiki>|<code>.*?<\/code>|' . // nowiki/code
|
||||||
'<pre>.*?<\/pre>|<html>.*?<\/html>|' . // pre/html
|
'<pre>.*?<\/pre>|<html>.*?<\/html>|' . // pre/html
|
||||||
'<script>.*?<\/script>|' . // script
|
'<script>.*?<\/script>|' . // script
|
||||||
|
'<gallery>.*?<\/gallery>|' . // gallery
|
||||||
'<div.+?>|<\/div>|' . // attributes of div elements
|
'<div.+?>|<\/div>|' . // attributes of div elements
|
||||||
'<span.+?>|<\/span>|' . // attributes of span elements
|
'<span.+?>|<\/span>|' . // attributes of span elements
|
||||||
'<file>[^<]*<\/file>|' . // stuff inside file elements
|
'<file>[^<]*<\/file>|' . // stuff inside file elements
|
||||||
|
Reference in New Issue
Block a user