From 0417481fb1814b67e544e51d235cc2d5697dc75c Mon Sep 17 00:00:00 2001 From: Antonio Gallo Date: Wed, 19 Oct 2011 17:34:04 +0000 Subject: improved wiki formatting: added a way to describe the wiki tags without apply them - Luis Alberto (Ark74) issue --- h-source/Application/Include/myFunctions.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/h-source/Application/Include/myFunctions.php b/h-source/Application/Include/myFunctions.php index 44b926b..61c2ec2 100644 --- a/h-source/Application/Include/myFunctions.php +++ b/h-source/Application/Include/myFunctions.php @@ -270,6 +270,10 @@ function decodeWikiText($string) $string = preg_replace_callback('/(\[tab )(lang=)([^\s]+)(\s*\])(.*?)(\[\/tab\])/s', 'createTabs',$string); $string = preg_replace('/(\[lang\])(.*?)(\[\/lang\])/s', '
${2}
',$string); + + $string = preg_replace('/(\{\{)/s', '[',$string); + + $string = preg_replace('/(\}\})/s', ']',$string); return Tabs::render()."\n\n".$string; } -- cgit v1.2.3