From fa372b7b846893afdd5c1a1fb888903eea4ab159 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Thu, 24 Mar 2016 21:50:49 -0400 Subject: Remove controller action for Markdown preview --- app/Controller/TaskHelper.php | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'app/Controller/TaskHelper.php') diff --git a/app/Controller/TaskHelper.php b/app/Controller/TaskHelper.php index 236af33e..7e340a6a 100644 --- a/app/Controller/TaskHelper.php +++ b/app/Controller/TaskHelper.php @@ -10,22 +10,6 @@ namespace Kanboard\Controller; */ class TaskHelper extends Base { - /** - * Render Markdown text and reply with the HTML Code - * - * @access public - */ - public function preview() - { - $payload = $this->request->getJson(); - - if (empty($payload['text'])) { - $this->response->html('

'.t('Nothing to preview...').'

'); - } - - $this->response->html($this->helper->text->markdown($payload['text'])); - } - /** * Task autocompletion (Ajax) * -- cgit v1.2.3