Remove controller action for Markdown preview

This commit is contained in:
Frederic Guillot
2016-03-24 21:50:49 -04:00
parent a1d795baaa
commit fa372b7b84
2 changed files with 0 additions and 17 deletions

View File

@@ -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('<p>'.t('Nothing to preview...').'</p>');
}
$this->response->html($this->helper->text->markdown($payload['text']));
}
/**
* Task autocompletion (Ajax)
*