summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/Controller/TaskHelper.php16
-rw-r--r--app/Template/layout.php1
2 files changed, 0 insertions, 17 deletions
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
@@ -11,22 +11,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('<p>'.t('Nothing to preview...').'</p>');
- }
-
- $this->response->html($this->helper->text->markdown($payload['text']));
- }
-
- /**
* Task autocompletion (Ajax)
*
* @access public
diff --git a/app/Template/layout.php b/app/Template/layout.php
index 74faf487..67924e3e 100644
--- a/app/Template/layout.php
+++ b/app/Template/layout.php
@@ -36,7 +36,6 @@
</head>
<body data-status-url="<?= $this->url->href('app', 'status') ?>"
data-login-url="<?= $this->url->href('auth', 'login') ?>"
- data-markdown-preview-url="<?= $this->url->href('TaskHelper', 'preview') ?>"
data-keyboard-shortcut-url="<?= $this->url->href('Doc', 'shortcuts') ?>"
data-timezone="<?= $this->app->getTimezone() ?>"
data-js-lang="<?= $this->app->jsLang() ?>">