Changeset 82512 in spip-zone


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

bugfix liens avec _ dans em et strong (https://github.com/Cerdic/parsedown/tree/bugfix/em_strong_with_link)

Location:
_plugins_/markdown/branches/v0.12.0/lib/parsedown
Files:
2 added
1 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/markdown/branches/v0.12.0/lib/parsedown/Parsedown.php

    r82489 r82512  
    11101110    private static $strong_regex = array(
    11111111        '*' => '/^[*]{2}((?:[^*]|[*][^*]*[*])+?)[*]{2}(?![*])/s',
    1112         '_' => '/^__((?:[^_]|_[^_]*_)+?)__(?!_)/us',
     1112        '_' => '/^__((?:[^_](?:<\w[^>]*>)?|_(?:[^_]*?(?:<\w[^>]*>)?)+_)+?)__(?!_)/us',
    11131113    );
    11141114
    11151115    private static $em_regex = array(
    11161116        '*' => '/^[*]((?:[^*]|[*][*][^*]+?[*][*])+?)[*](?![*])/s',
    1117         '_' => '/^_((?:[^_]|__[^_]*__)+?)_(?!_)\b/us',
     1117        '_' => '/^_((?:[^_](?:<\w[^>]*>)?|__(?:[^_]*?(?:<\w[^>]*>)?)+__)+?)_(?!_)\b/us',
    11181118    );
    11191119
Note: See TracChangeset for help on using the changeset viewer.