diff --git a/.gitignore b/.gitignore index 4dd624328..b64b7bbb8 100644 --- a/.gitignore +++ b/.gitignore @@ -28,6 +28,11 @@ *.sqlite *.sqlite-journal +# IDE generated files # +###################### +.buildpath +.project + # OS generated files # ###################### .DS_Store diff --git a/core/helper.php b/core/helper.php index f3c3c3b84..7e65543a1 100644 --- a/core/helper.php +++ b/core/helper.php @@ -23,6 +23,13 @@ function get_username() return $_SESSION['user']['username']; } +function parse($text) +{ + $text = markdown($text); + $text = preg_replace('!#(\d+)!i', '$0', $text); + return $text; +} + function markdown($text) { require_once __DIR__.'/../vendor/Michelf/MarkdownExtra.inc.php'; diff --git a/templates/task_show.php b/templates/task_show.php index 97ce7f8c3..b16a20a01 100644 --- a/templates/task_show.php +++ b/templates/task_show.php @@ -72,7 +72,7 @@