-# V 0.2.6 Word umgebaut, verbImperfect
+# V 0.2.6 MediaWiki
+
+## Changed
+- MediaWiki:
+ - verbesserte RegEx-Ausdrücke in expandStarItems()
+ - Korrekturen in specialMacrosToHtml()
+
+# V 0.2.7 Word umgebaut, verbImperfect
## Changed
- Module Verb und Noun entfallen, Word arbeitet mit strukturiertem Attribut options
{
$rc = preg_replace(
[
- '/\*(\w[^*]+\w)\*/',
+ '/\*(\w.*?\w)\*/',
'/\*<(.+?)>\*/',
- '/\*-(\w[^*]+\w)-\*/',
- '/\*\+(\w[^*]+\w)\+\*/'
+ '/\*-(\w.*?\w)-\*/',
+ '/\*\+(\w.*?\w)\+\*/',
+ '/\*(\w)\*/'
],
[
'%trans($1)%',
'%field($1)%',
'%del($1)%',
- '%add($1)%'
+ '%add($1)%',
+ '%trans($1)%',
],
$text
);
break;
case 'trans':
$text = $matches[2];
- $info = count($matches) > 3 ? $text : substr($matches[3], 1);
+ $info = count($matches) <= 3 ? $text : substr($matches[3], 1);
$rc = "<i><b data-toggle=\"tooltip\" data-placement=\"top\" title=\"$info\">$text</b></i>";
break;
case 'mark':
$rc = '<span class="lkn-text-' . substr($matches[3], 1) . '">' . $matches[2] . '</span>';
break;
case 'add':
- $rc = '<ins class="lkn-ins">' . (count($matches) == 4 ? ($matches[2] . $matches[3]) : $matches[2]) . '</ins>';
+ $rc = '<ins class="lkn-ins">' . (count($matches) >= 4 ? ($matches[2] . $matches[3]) : $matches[2]) . '</ins>';
break;
case 'del':
$rc = '<del class="lkn-del">' . (count($matches) == 4 ? ($matches[2] . $matches[3]) : $matches[2]) . '</del>';
$class = $size == 0 ? '' : "lkn-icon-$size";
$rc = "<i class=\"$name $class\"></i>";
break;
- case 'image':
- $name = $matches[2];
- $size = count($matches) < 4 ? null : $matches[3];
- $class = $size == 0 ? '' : "lkn-icon-$size";
- $rc = "<img class=\"$name $class\"></i>";
- break;
default:
$rc = $matches[0];
break;
"dist": {
"type": "path",
"url": "../laraknife",
- "reference": "fdc1af63b7d821c111b630663be1f0bcbba93fa5"
+ "reference": "646e4764a06caa8ed60766fd98c8ce6882479d9c"
},
"require-dev": {
"phpunit/phpunit": "11.0.x-dev"