Changeset 82503 in spip-zone


Ignore:
Timestamp:
May 17, 2014, 10:24:41 AM (5 years ago)
Author:
cedric@…
Message:

bugfix echappement des liens avec title et correction d'un test afferent

Location:
_plugins_/markdown/branches/v0.12.0
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/markdown/branches/v0.12.0/markdown_options.php

    r82502 r82503  
    8383        //    [blabla]: http://....
    8484        if (strpos($texte,"]:")!==false){
    85                 preg_match_all(",^(\s*\[[^]]*\])(:[ \t]+.*)$,Uims",$texte,$matches,PREG_SET_ORDER);
     85                preg_match_all(",^(\s*\[[^]]*\])(:[ \t]+[^\s]*(\s+(\".*\"|'.*'|\(.*\)))?)$,Uims",$texte,$matches,PREG_SET_ORDER);
    8686                foreach($matches as $match){
    8787                        #var_dump($match);
  • _plugins_/markdown/branches/v0.12.0/tests/data/typo/reference_title.html

    r82499 r82503  
    11<p><a href="http://example.com" title="example title!">double quotes&nbsp;!</a> and <a href="http://example.com" title="example title!">single quotes&nbsp;!</a> and <a href="http://example.com" title="example title!">parentheses&nbsp;!</a></p>
    2 <p>[invalid title&nbsp;!]: <a href="http://example.com">http://example.com</a> example title&nbsp;!</p>
     2<p>[invalid title&nbsp;!]&nbsp;: <a href="http://example.com">http://example.com</a> example title&nbsp;!</p>
Note: See TracChangeset for help on using the changeset viewer.