diff options
| author | ctrlcctrlv <wizardchan@hush.com> | 2013-08-29 13:43:50 +0000 |
|---|---|---|
| committer | ctrlcctrlv <wizardchan@hush.com> | 2013-08-29 13:43:50 +0000 |
| commit | 2804c6b775b07b5417d95b160674570600ff047f (patch) | |
| tree | 17aa60a9755be050a163403bcfaf54dd78c5ba4d /inc/config.php | |
| parent | ee52dcb5835caa2193570d17e174ee812bb1f2fe (diff) | |
| parent | 8de81d176cc379687abbfebc3daa72e96068d49a (diff) | |
Merge remote-tracking branch 'upstream/master' (vichan-devel)
Diffstat (limited to 'inc/config.php')
| -rw-r--r-- | inc/config.php | 20 |
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; |
