Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / vendor / cebe / markdown / MarkdownExtra.php
index a7e9bb86db937d6eb317270cc7bc52ff1f413019..919de63e6d7a345c14c88b600000071ad06abb91 100644 (file)
@@ -69,7 +69,7 @@ class MarkdownExtra extends Markdown
 
        protected function identifyReference($line)
        {
-               return ($line[0] === ' ' || $line[0] === '[') && preg_match('/^ {0,3}\[(.+?)\]:\s*([^\s]+?)(?:\s+[\'"](.+?)[\'"])?\s*('.$this->_specialAttributesRegex.')?\s*$/', $line);
+               return ($line[0] === ' ' || $line[0] === '[') && preg_match('/^ {0,3}\[[^\[](.*?)\]:\s*([^\s]+?)(?:\s+[\'"](.+?)[\'"])?\s*('.$this->_specialAttributesRegex.')?\s*$/', $line);
        }
 
        /**