Do not link inside <gallery>..</gallery> tags.

- Fix: Do not link inside <gallery>...</gallery> tags.

Closes #21.
This commit is contained in:
Daniel Kraus
2017-01-14 06:29:35 +01:00
parent 1cfb1a8c9b
commit 815e8a7822

View File

@ -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