1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-24 07:30:10 +01:00

[code] fix regexps

This commit is contained in:
czaks 2015-04-12 03:08:40 +02:00
parent 197d5f236f
commit 1b16e97f67

View File

@ -625,8 +625,8 @@
$config['markup'][] = array("/^[ |\t]*==(.+?)==[ |\t]*$/m", "<span class=\"heading\">\$1</span>");
// Code markup. This should be set to a regular expression, using tags you want to use. Examples:
// "/\[code\](.*?)[\/code]/is"
// "/```([a-z0-9-]{0,20})\n(.*?)\n?```/s"
// "/\[code\](.*?)\[\/code\]/is"
// "/```([a-z0-9-]{0,20})\n(.*?)\n?```\n?/s"
$config['markup_code'] = false;
// Repair markup with HTML Tidy. This may be slower, but it solves nesting mistakes. Tinyboad, at the