From 3b63cad71fe15f98dc84f3d6451817251e8f89f7 Mon Sep 17 00:00:00 2001 From: Michael Foster Date: Thu, 29 Aug 2013 15:29:04 +1000 Subject: [PATCH] $config['always_regenerate_markup'] --- inc/display.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/inc/display.php b/inc/display.php index 81f8c53d..4639e86e 100644 --- a/inc/display.php +++ b/inc/display.php @@ -316,6 +316,11 @@ class Post { $this->modifiers = extract_modifiers($this->body_nomarkup); + if ($config['always_regenerate_markup']) { + $this->body = $this->body_nomarkup; + markup($this->body); + } + if ($this->mod) // Fix internal links // Very complicated regex @@ -411,6 +416,11 @@ class Thread { $this->modifiers = extract_modifiers($this->body_nomarkup); + if ($config['always_regenerate_markup']) { + $this->body = $this->body_nomarkup; + markup($this->body); + } + if ($this->mod) // Fix internal links // Very complicated regex