summaryrefslogtreecommitdiff
path: root/inc/config.php
diff options
context:
space:
mode:
authorczaks <marcin@6irc.net>2013-08-29 07:33:19 -0400
committerczaks <marcin@6irc.net>2013-08-29 07:33:19 -0400
commit8de81d176cc379687abbfebc3daa72e96068d49a (patch)
tree87e79f53ea13449b76944dd93a17e2a10d56da91 /inc/config.php
parentb61772361cd124c665a9356630936d8f8b4a352b (diff)
parent738179c766953fa45670e451875210c6874a41f2 (diff)
Merge branch 'master' of https://github.com/savetheinternet/Tinyboard
Conflicts: inc/config.php
Diffstat (limited to 'inc/config.php')
-rw-r--r--inc/config.php20
1 files changed, 15 insertions, 5 deletions
diff --git a/inc/config.php b/inc/config.php
index ccefe1e8..1d3321ce 100644
--- a/inc/config.php
+++ b/inc/config.php
@@ -464,10 +464,10 @@
*/
// "Wiki" markup syntax ($config['wiki_markup'] in pervious versions):
- $config['markup'][] = array("/'''([^<]+?)'''/", "<strong>\$1</strong>");
- $config['markup'][] = array("/''([^<]+?)''/", "<em>\$1</em>");
- $config['markup'][] = array("/\*\*([^<]+?)\*\*/", "<span class=\"spoiler\">\$1</span>");
- $config['markup'][] = array("/^[ |\t]*==([^<]+?)==[ |\t]*$/m", "<span class=\"heading\">\$1</span>");
+ $config['markup'][] = array("/'''(.+?)'''/", "<strong>\$1</strong>");
+ $config['markup'][] = array("/''(.+?)''/", "<em>\$1</em>");
+ $config['markup'][] = array("/\*\*(.+?)\*\*/", "<span class=\"spoiler\">\$1</span>");
+ $config['markup'][] = array("/^[ |\t]*==(.+?)==[ |\t]*$/m", "<span class=\"heading\">\$1</span>");
// Highlight PHP code wrapped in <code> tags (PHP 5.3+)
// $config['markup'][] = array(
@@ -477,6 +477,16 @@
// }
// );
+ // Repair markup with HTML Tidy. This may be slower, but it solves nesting mistakes. Tinyboad, at the
+ // time of writing this, can not prevent out-of-order markup tags (eg. "**''test**'') without help from
+ // HTML Tidy.
+ $config['markup_repair_tidy'] = false;
+
+ // Always regenerate markup. This isn't recommended and should only be used for debugging; by default,
+ // Tinyboard only parses post markup when it needs to, and keeps post-markup HTML in the database. This
+ // will significantly impact performance when enabled.
+ $config['always_regenerate_markup'] = false;
+
/*
* ====================
* Image settings
@@ -606,7 +616,7 @@
// Display the aspect ratio of uploaded files.
$config['show_ratio'] = false;
// Display the file's original filename.
- $config['show_filename']= true;
+ $config['show_filename'] = true;
// Display image identification links using regex.info/exif, TinEye and Google Images.
$config['image_identification'] = false;